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

Disassembly:
push 0xffffffffffffffff
push 0x4d9790
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebp
mov byte [esp + 0x70], 0
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x94], ebp
call fcn.00457cf0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x68], ebp
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
push edx
push eax
lea ecx, [esi + 0x180]
mov byte [esp + 0x9c], 1
call fcn.00456590
cmp dword [esi + 0x228], 4
mov ebx, eax
mov dword [esp + 0x38], ebx
jne 0x46d8ed
mov ecx, dword [esi + 0x474]
mov edx, dword [esi + 0x470]
mov eax, dword [esi + 0x46c]
push ecx
mov ecx, dword [esi + 0x468]
push edx
push eax
push ecx
lea edx, [esi + 0x530]
push edx
call dword [sym.imp.user32.dll_SetRect]
mov eax, dword [esi + 0x46c]
mov ecx, dword [esi + 0x468]
lea edi, [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 + 0x20], edi
jmp 0x46d8f1
mov edi, dword [esp + 0x20]
mov ecx, dword [esi + 0x48c]
mov eax, dword [esi + 0x1c4]
mov edx, dword [esi + 0x490]
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], 1
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov dword [esp + 0x44], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], ebp
jle 0x46daff
mov dword [esp + 0x18], ebp
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
cmp dword [esp + 0x1c], eax
jb 0x46d96a
call fcn.0049eacd
mov ecx, dword [edi + 0x28]
add ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ebp
push ecx
lea ecx, [esp + 0x78]
call fcn.00401860
mov ebx, dword [esp + 0x80]
mov ecx, dword [esi + 0x458]
mov eax, ebx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ecx + 0x10]
sar edx, 1
imul edx, dword [esi + 0x48c]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add dword [esi + 0x1c4], eax
mov eax, dword [ecx + 0xc]
sub eax, dword [esi + 0x490]
mov dword [esp + 0x24], ebx
cdq
sub eax, edx
sar eax, 1
add dword [esi + 0x1c8], eax
cmp ebx, ebp
mov dword [esp + 0x34], eax
jle 0x46dace
mov ebx, 1
cmp ebp, dword [esp + 0x80]
jbe 0x46d9e2
call fcn.0049eacd
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x46d9f4
lea eax, [esp + 0x70]
mov al, byte [eax + ebp]
mov byte [esp + 0x14], al
cmp ebx, dword [esp + 0x80]
jbe 0x46da09
call fcn.0049eacd
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x46da1b
lea eax, [esp + 0x70]
cmp byte [esp + 0x14], 0xfe
mov cl, byte [ebx + eax]
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], 0
je 0x46da9a
cmp cl, 0xfe
je 0x46da9a
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 + 0x2c]
push 0
mov byte [esp + 0x19], cl
mov ecx, dword [esp + 0xa4]
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 + 0x40]
mov dword [esi + 0xfd4], edi
add dword [esi + 0x1c4], eax
mov edi, dword [esp + 0x20]
jmp 0x46dabe
inc ebp
inc ebx
cmp ebp, dword [esp + 0x24]
je 0x46dac8
mov edx, dword [esi + 0xcc]
add edx, dword [esi + 0x490]
mov ecx, dword [esp + 0x28]
add dword [esi + 0x1c8], edx
mov dword [esi + 0x1c4], ecx
cmp ebp, dword [esp + 0x24]
jl 0x46d9d4
mov eax, dword [esp + 0x34]
xor ebp, ebp
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 0x1c
mov dword [esi + 0x1c4], ecx
mov edx, dword [edi + 0x74]
sub edx, eax
mov eax, dword [esp + 0x1c]
add dword [esi + 0x1c8], edx
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
jl 0x46d946
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x480]
mov ecx, dword [eax + 0x5c]
add eax, 0x4c
mov dword [esi + 0x540], ecx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x544], edx
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x548], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x534], edx
mov ecx, dword [eax]
mov dword [esi + 0x530], ecx
mov edx, dword [eax + 8]
xor ecx, ecx
cmp ebx, 0xffffffff
setne cl
mov dword [esi + 0x538], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x53c], eax
mov eax, dword [esp + 0x5c]
mov esi, ecx
cmp eax, ebp
je 0x46db68
push eax
call fcn.0048dd02
add esp, 4
mov edx, dword [esp + 0x50]
push edx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
call fcn.0048dd02
add esp, 4
cmp dword [esp + 0x84], 0x10
jb 0x46db98
mov eax, dword [esp + 0x70]
push eax
call fcn.0048dd02
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0049ef0f
add esp, 0x84
ret 0x10