Function at 0x460914
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff14
cmp dword [0x4d5a68], 0
je 0x460939
cmp dword [0x4d5a68], 6
je 0x460939
cmp dword [0x4d5a70], 0
jne 0x460941
or eax, 0xffffffff
jmp 0x461153
cmp dword [0x4d5a14], 0
jne 0x460952
or eax, 0xffffffff
jmp 0x461153
mov edx, dword [0x4d7900]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x20], 0
jne 0x46096b
or eax, 0xffffffff
jmp 0x461153
xor edx, edx
xor ecx, ecx
mov dword [0x4d7c7c], edx
mov dword [esp + 4], ecx
cmp dword [0x4d5a24], 0
je 0x460b86
cmp dword [0x4d5a28], 0
je 0x460b86
cmp dword [0x4d5a2c], 0
je 0x460b86
cmp dword [0x4d5a30], 0
je 0x460b86
cmp dword [0x4d5a34], 0
je 0x460b86
cmp dword [0x4d7b4d], 0
je 0x460b86
mov eax, dword [0x4d7b4d]
xor ebp, ebp
jmp 0x4609d8
and dword [eax + 8], 0xfffffffd
inc ebp
add eax, 0x10
cmp ebp, dword [0x4d7b35]
jl 0x4609d0
mov eax, dword [0x4d5a70]
push eax
push 1
call dword [0x4d5a24]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0xffffffff
je 0x460b86
mov dword [esp + 0xb8], 0x10
lea edx, [esp + 0xb8]
push edx
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x4d5a28]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x460b6d
mov dword [esp + 0xc8], 0x24
mov eax, dword [esp + 0xc0]
push eax
mov edx, dword [0x4d5a70]
push edx
lea ecx, [esp + 0xd0]
push ecx
call dword [0x4d5a30]
test eax, eax
je 0x460b4b
test byte [esp + 0xd8], 2
jne 0x460b35
cmp dword [esp + 0xd4], 0
je 0x460b35
mov eax, dword [esp + 0xd0]
mov edx, eax
add edx, dword [esp + 0xd4]
push edx
push eax
push 0x4d7a31
call sym.ollydbg.exe__Findsorteddatarange
add esp, 0xc
test eax, eax
je 0x460abc
mov ecx, dword [eax]
cmp ecx, dword [esp + 0xd0]
jne 0x460abc
mov edx, dword [eax + 4]
cmp edx, dword [esp + 0xd4]
jne 0x460abc
mov ecx, dword [eax + 0xc]
cmp ecx, dword [esp + 0xc0]
je 0x460b15
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x74], eax
test byte [esp + 0xc4], 1
je 0x460ae6
mov dword [esp + 0x78], 0x20003
jmp 0x460aee
mov dword [esp + 0x78], 0x40003
mov edx, dword [esp + 0xc0]
lea ecx, [esp + 0x70]
mov dword [esp + 0x7c], edx
push ecx
push 0x4d7a31
call sym.ollydbg.exe__Addsorteddata
add esp, 8
mov dword [esp + 4], 1
jmp 0x460b35
test byte [eax + 8], 1
je 0x460b31
mov edx, dword [eax + 8]
and edx, 0xfffffffe
or edx, 2
mov dword [eax + 8], edx
mov dword [esp + 4], 1
jmp 0x460b35
or dword [eax + 8], 2
lea eax, [esp + 0xc8]
push eax
call dword [0x4d5a34]
test eax, eax
jne 0x460a5a
lea ecx, [esp + 0xb8]
push ecx
mov eax, dword [esp + 0x28]
push eax
call dword [0x4d5a2c]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jne 0x460a2a
mov edx, dword [esp + 0x24]
push edx
call sub.KERNEL32.DLL_CloseHandle
push 0x4d7a31
call sym.ollydbg.exe__Deletenonconfirmedsorteddata
pop ecx
add dword [esp + 4], eax
mov esi, dword [0x4d7db0]
test esi, esi
je 0x460be2
xor ebp, ebp
jmp 0x460bda
xor eax, eax
xor edx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
cmp dword [esi + 0x10], 0
je 0x460bd3
push 3
push 8
mov ecx, dword [esi + 0x10]
add ecx, 4
push ecx
lea eax, [esp + 0x24]
push eax
call sym.ollydbg.exe__Readmemory
add esp, 0x10
mov dword [esp], eax
cmp dword [esp], 8
jne 0x460bd3
mov edx, dword [esp + 0x18]
mov dword [esi + 0x18], edx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1c], ecx
inc ebp
add esi, 0x66c
cmp ebp, dword [0x4d7d98]
jl 0x460b94
xor ebp, ebp
jmp 0x460bf4
mov eax, dword [esp + 0x20]
inc ebp
and dword [eax + 8], 0xfffffffd
add dword [esp + 0x20], 0x48
cmp ebp, dword [0x4d78e8]
jl 0x460be6
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x8c], ecx
push 0x1c
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [0x4d5a68]
mov edx, dword [esp + 0x14]
push edx
push ecx
call dword [0x4d5a14]
test eax, eax
jne 0x460c34
xor eax, eax
mov dword [esp + 0xa8], eax
mov edx, dword [esp + 0xa8]
add dword [esp + 0xc], edx
and dword [esp + 0xa4], 0xfffffcff
cmp dword [esp + 0xac], 0x2000
jne 0x460c64
mov dword [esp + 0xa4], 1
jmp 0x460c93
cmp dword [esp + 0xa4], 8
jne 0x460c7b
mov dword [esp + 0xa4], 4
jmp 0x460c93
cmp dword [esp + 0xa4], 0x80
jne 0x460c93
mov dword [esp + 0xa4], 0x40
cmp dword [esp + 0xa8], 0
je 0x4610d0
cmp dword [esp + 0x8c], 0
jne 0x460cc5
lea esi, [esp + 0x9c]
lea edi, [esp + 0x80]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
jmp 0x460c0b
mov eax, dword [esp + 0x84]
cmp eax, dword [esp + 0xa0]
jne 0x4610d0
mov edx, dword [esp + 0x88]
cmp edx, dword [esp + 0xa4]
jne 0x4610d0
mov ecx, dword [esp + 0x90]
cmp ecx, dword [esp + 0xac]
jne 0x4610d0
mov eax, dword [esp + 0x98]
cmp eax, dword [esp + 0xb4]
jne 0x4610d0
mov edx, dword [esp + 0xa8]
add dword [esp + 0x8c], edx
jmp 0x460c0b
cmp dword [esp + 0x90], 0x1000
jne 0x4610df
mov ebx, dword [esp + 0x80]
mov edi, eax
add edi, ebx
xor eax, eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 0
mov dword [esp + 0x30], 2
push edi
push ebx
push 0x4d70fc
call sym.ollydbg.exe__Findsorteddatarange
add esp, 0xc
mov esi, eax
test esi, esi
je 0x460e99
cmp dword [esi + 0x154], 0
jle 0x460e99
cmp dword [esi + 0x158], 0
je 0x460e99
xor ebp, ebp
mov edx, dword [esi + 0x158]
jmp 0x460e8d
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
add eax, dword [esi]
add ecx, 0xfff
and ecx, 0xfffff000
cmp ebx, eax
mov dword [esp + 0x10], ecx
jae 0x460dbe
cmp edi, eax
jbe 0x460dbe
mov edi, eax
jmp 0x460e89
cmp ebx, eax
jb 0x460e89
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp ebx, ecx
jae 0x460e89
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp edi, ecx
jbe 0x460de0
mov edi, ecx
push 8
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004a3904
add esp, 0xc
mov eax, dword [esi + 0x3ed]
cmp ebx, eax
jb 0x460e0c
add eax, dword [esi + 0x3f1]
cmp ebx, eax
jae 0x460e0c
or dword [esp + 0x30], 0x80000
mov eax, dword [esi + 0xc]
cmp ebx, eax
jb 0x460e25
add eax, dword [esi + 0x3e9]
cmp ebx, eax
jae 0x460e25
or dword [esp + 0x30], 0x100000
cmp ebx, dword [esi + 0x2c]
jne 0x460e32
or dword [esp + 0x30], 0x200000
mov eax, dword [esi + 0x34]
cmp ebx, eax
ja 0x460e45
cmp edi, eax
jbe 0x460e45
or dword [esp + 0x30], 0x400000
mov eax, dword [esi + 0x38]
cmp edi, eax
jbe 0x460e5b
add eax, dword [esi + 0x3c]
cmp ebx, eax
jae 0x460e5b
or dword [esp + 0x30], 0x800000
mov eax, dword [esi + 0x14]
cmp edi, eax
jbe 0x460e71
add eax, dword [esi + 0x18]
cmp ebx, eax
jae 0x460e71
or dword [esp + 0x30], 0x1000000
mov eax, dword [esi + 0x40]
cmp edi, eax
jbe 0x460e99
add eax, dword [esi + 0x44]
cmp ebx, eax
jae 0x460e99
or dword [esp + 0x30], 0x2000000
jmp 0x460e99
inc ebp
add edx, 0x28
cmp ebp, dword [esi + 0x154]
jl 0x460d97
test esi, esi
je 0x460f09
cmp ebx, dword [esi]
jne 0x460f09
lea edx, [ebx + 0x40]
cmp edi, edx
jb 0x460f09
push 3
push 4
lea ecx, [ebx + 0x3c]
push ecx
lea eax, [esp + 0x20]
push eax
call sym.ollydbg.exe__Readmemory
add esp, 0x10
cmp eax, 4
jne 0x460f09
mov edx, edi
sub edx, ebx
cmp edx, dword [esp + 0x14]
jbe 0x460f09
push 3
push 4
mov ecx, dword [esp + 0x1c]
add ecx, ebx
push ecx
lea eax, [esp + 0x20]
push eax
call sym.ollydbg.exe__Readmemory
add esp, 0x10
cmp eax, 4
jne 0x460f09
push 4
push 0x4bc444
lea edx, [esp + 0x1c]
push edx
call fcn.004a37d4
add esp, 0xc
test eax, eax
jne 0x460f09
or dword [esp + 0x30], 0x10000000
mov esi, dword [0x4d7db0]
test esi, esi
je 0x460f7c
xor ebp, ebp
jmp 0x460f74
mov eax, dword [esi + 0x10]
cmp ebx, eax
jae 0x460f26
cmp edi, eax
jbe 0x460f26
mov edi, eax
jmp 0x460f42
cmp ebx, eax
jne 0x460f42
mov eax, dword [esp + 0x30]
and eax, 0xe001ffff
or eax, 0x8000000
mov dword [esp + 0x30], eax
mov edx, dword [esi]
mov dword [esp + 0x40], edx
mov eax, dword [esi + 0x1c]
cmp ebx, eax
jae 0x460f51
cmp edi, eax
jbe 0x460f51
mov edi, eax
jmp 0x460f6d
cmp ebx, eax
jne 0x460f6d
mov eax, dword [esp + 0x30]
and eax, 0xe001ffff
or eax, 0x4000000
mov dword [esp + 0x30], eax
mov edx, dword [esi]
mov dword [esp + 0x40], edx
inc ebp
add esi, 0x66c
cmp ebp, dword [0x4d7d98]
jl 0x460f17
push edi
push ebx
push 0x4d7a31
call sym.ollydbg.exe__Findsorteddatarange
add esp, 0xc
test eax, eax
je 0x460f9c
mov ecx, dword [eax + 8]
and ecx, 0x60000
or dword [esp + 0x30], ecx
mov eax, edi
mov dword [esp + 0x28], ebx
sub eax, ebx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x84]
mov dword [esp + 0x34], edx
xor edx, edx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x38], ecx
mov ecx, edi
mov eax, dword [esp + 0x90]
or eax, dword [esp + 0x94]
or eax, dword [esp + 0x98]
dec ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], edx
push edi
push ecx
push 0x4d77e4
call sym.ollydbg.exe__Findsorteddatarange
add esp, 0xc
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x46102d
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
cmp edx, dword [esp + 0x28]
jne 0x46102d
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x2c]
jne 0x46102d
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0xc]
cmp ecx, dword [esp + 0x34]
jne 0x46102d
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x10]
cmp edx, dword [esp + 0x38]
je 0x461033
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x20], 0
je 0x461081
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 8]
and edx, 0x20000000
or edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov dword [eax + 0x18], edx
push 8
lea ecx, [esp + 0x48]
push ecx
mov eax, dword [esp + 0x28]
add eax, 0x1c
push eax
call fcn.004a3530
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0x14], ecx
jmp 0x4610be
push edi
push ebx
push 0x4d77e4
call sym.ollydbg.exe__Deletesorteddatarange
add esp, 0xc
or dword [esp + 0x30], 1
lea eax, [esp + 0x28]
push eax
push 0x4d77e4
call sym.ollydbg.exe__Addsorteddata
add esp, 8
push edi
push ebx
push 0x475
call sym.ollydbg.exe__Broadcast
add esp, 0xc
mov dword [esp + 4], 1
mov dword [esp + 0x80], edi
mov edx, dword [esp + 0x2c]
sub dword [esp + 0x8c], edx
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x460d28
cmp dword [esp + 0xa8], 0
je 0x461103
lea esi, [esp + 0x9c]
lea edi, [esp + 0x80]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
jmp 0x460c0b
push 0x4d77e4
call sym.ollydbg.exe__Deletenonconfirmedsorteddata
pop ecx
add dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x461131
cmp dword [0x4d77e0], 0
je 0x461131
push 0
push 0
mov eax, dword [0x4d77e0]
push eax
call sub.USER32.DLL_InvalidateRect
cmp dword [esp + 4], 0
je 0x461151
cmp dword [0x4d7a2d], 0
je 0x461151
push 0
push 0
mov edx, dword [0x4d7a2d]
push edx
call sub.USER32.DLL_InvalidateRect
xor eax, eax
add esp, 0xec
pop ebp
pop edi
pop esi
pop ebx
ret