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

Disassembly:
push 0xffffffffffffffff
push 0x4d9710
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebp
mov byte [esp + 0x78], 0
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x9c], ebp
call fcn.00457cf0
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], ebp
mov dword [esp + 0x70], ebp
mov ecx, esi
mov byte [esp + 0x9c], 1
call fcn.004666a0
mov eax, dword [esi + 0x228]
mov ebx, dword [sym.imp.user32.dll_SetRect]
cmp eax, 1
je 0x46cb5a
cmp eax, 2
jne 0x46cba3
mov edx, dword [esi + 0x17c]
mov eax, dword [esi + 0x178]
mov ecx, dword [esi + 0x174]
push edx
mov edx, dword [esi + 0x170]
push eax
push ecx
push edx
lea eax, [esi + 0x530]
push eax
call ebx
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1c4]
lea edi, [esi + 0x4a8]
mov dword [esi + 0x21c], ecx
mov dword [esi + 0x218], edx
mov dword [esp + 0x18], edi
jmp 0x46cba7
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x228], 3
jne 0x46cc05
mov eax, dword [esi + 0x3c4]
mov ecx, dword [esi + 0x3c0]
mov edx, dword [esi + 0x3bc]
push eax
mov eax, dword [esi + 0x3b8]
push ecx
push edx
push eax
lea ecx, [esi + 0x530]
push ecx
call ebx
mov eax, dword [esi + 0x3bc]
mov ecx, dword [esi + 0x3b8]
lea edx, [esi + 0x30c]
mov dword [esi + 0x21c], eax
mov dword [esi + 0x218], ecx
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1c4], ecx
mov dword [esp + 0x18], edx
mov edi, edx
cmp dword [esi + 0x228], 4
jne 0x46cc63
mov eax, dword [esi + 0x474]
mov ecx, dword [esi + 0x470]
mov edx, dword [esi + 0x46c]
push eax
mov eax, dword [esi + 0x468]
push ecx
push edx
push eax
lea ecx, [esi + 0x530]
push ecx
call ebx
mov eax, dword [esi + 0x46c]
mov ecx, dword [esi + 0x468]
lea edx, [esi + 0x3d8]
mov dword [esi + 0x21c], eax
mov dword [esi + 0x218], ecx
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1c4], ecx
mov dword [esp + 0x18], edx
mov edi, edx
mov eax, dword [esi + 0x1c4]
mov dword [esp + 0x28], eax
cmp dword [edi + 0x5c], ebp
je 0x46cebb
mov ecx, dword [esi + 0x48c]
mov edx, dword [esi + 0x490]
mov dword [esp + 0x38], ecx
lea ecx, [esi + 0x180]
mov dword [esp + 0x3c], edx
mov dword [edi + 0x5c], ebp
call fcn.00457670
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
jle 0x46cebb
mov dword [esp + 0x1c], ebp
cmp dword [esi + 0x8bc], 0xffffffff
je 0x46ccea
cmp dword [esi + 0x8ac], ebp
jne 0x46ccea
cmp ebx, dword [edi + 0x58]
jne 0x46cce2
mov eax, dword [esi + 0x2c]
jmp 0x46ccfb
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x20], ecx
jmp 0x46ccfe
cmp ebx, dword [edi + 0x58]
jne 0x46ccf8
mov edx, dword [esp + 0x20]
mov dword [esi + 0x20], edx
jmp 0x46ccfe
mov eax, dword [esi + 0x28]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x46cd20
call fcn.0049eacd
mov edx, dword [edi + 0x28]
add edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebp
push edx
lea ecx, [esp + 0x80]
call fcn.00401860
mov eax, dword [esp + 0x88]
cmp eax, ebp
mov ecx, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1c4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
jle 0x46ce59
mov ebx, 1
jmp 0x46cd6c
mov eax, dword [esp + 0x88]
cmp ebp, eax
jbe 0x46cd75
call fcn.0049eacd
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x46cd87
lea eax, [esp + 0x78]
mov al, byte [eax + ebp]
mov byte [esp + 0x14], al
cmp ebx, dword [esp + 0x88]
jbe 0x46cd9c
call fcn.0049eacd
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x46cdae
lea eax, [esp + 0x78]
cmp byte [esp + 0x14], 0xfe
mov cl, byte [ebx + eax]
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], 0
je 0x46ce2d
cmp cl, 0xfe
je 0x46ce2d
mov al, byte [esi + 0xfd9]
mov dl, byte [esi + 0x858]
xor byte [esp + 0x14], al
mov edi, dword [esi + 0xfd4]
add dl, al
dec dl
xor cl, dl
mov edx, dword [esp + 0x34]
push 0
mov byte [esp + 0x19], cl
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
add ebp, 2
add ebx, 2
mov dword [esi + 0xfd4], 0
call fcn.0046ca50
mov eax, dword [esi + 0xc8]
add eax, dword [esp + 0x38]
mov dword [esi + 0xfd4], edi
add dword [esi + 0x1c4], eax
mov edi, dword [esp + 0x18]
jmp 0x46ce4b
inc ebp
inc ebx
cmp ebp, dword [esp + 0x2c]
je 0x46ce55
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x490]
add dword [esi + 0x1c8], edx
mov dword [esi + 0x1c4], ecx
cmp ebp, dword [esp + 0x2c]
jl 0x46cd65
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c8]
mov edx, dword [esi + 0x1c4]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esi + 0x490]
mov dword [esi + 0x1c4], ebp
mov ebp, dword [edi + 0x74]
add ebp, eax
add ecx, eax
mov dword [esi + 0x1c8], ebp
mov ebp, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x54]
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea ecx, [esi + 0x180]
call fcn.00458cc0
add dword [esp + 0x1c], 0x1c
inc ebx
xor ebp, ebp
cmp ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
jl 0x46ccc7
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0x1c8]
lea edx, [ecx + eax*2]
mov eax, dword [esi + 0x1c4]
add edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x224], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x220], edx
mov dword [esi + 0x20], ecx
mov dword [edi + 0x54], 1
cmp eax, ebp
je 0x46ceff
push eax
call fcn.0048dd02
add esp, 4
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
call fcn.0048dd02
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x46cf2f
mov eax, dword [esp + 0x78]
push eax
call fcn.0048dd02
add esp, 4
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0049ef0f
add esp, 0x8c
ret 8