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

Disassembly:
push 0xffffffffffffffff
push 0x4db440
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x51d260]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51d260]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], edi
call fcn.0043abe0
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], edi
mov dword [esp + 0x6c], edi
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push edx
push eax
lea ecx, [esi + 0x180]
mov byte [esp + 0xa0], 1
call fcn.00458400
cmp dword [esi + 0x228], 4
mov ebp, eax
mov dword [esp + 0x30], ebp
jne 0x47004d
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 + 0x24], edi
jmp 0x470051
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0x48c]
mov eax, dword [esi + 0x1c4]
mov edx, dword [esi + 0x490]
mov dword [esp + 0x44], ecx
mov dword [edi + 0x58], ebp
mov dword [edi + 0x5c], 1
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
xor ecx, ecx
cmp ebx, ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ecx
jle 0x47026c
mov dword [esp + 0x18], ecx
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 0x4700cc
call fcn.004a067d
mov ecx, dword [edi + 0x28]
add ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esp + 0x7c]
call fcn.004017c0
mov ecx, dword [esp + 0x84]
mov ebp, dword [esi + 0x458]
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 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 [ebp + 0xc]
sub eax, dword [esi + 0x490]
xor ebp, ebp
cdq
sub eax, edx
sar eax, 1
add dword [esi + 0x1c8], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x47023b
mov byte [esp + 0x16], 0
lea edi, [ebp + 1]
jmp 0x470147
mov ecx, dword [esp + 0x84]
cmp ebp, ecx
jbe 0x470157
call fcn.004a067d
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x88], 0x10
mov eax, dword [esp + 0x74]
jae 0x470169
lea eax, [esp + 0x74]
mov bl, byte [eax + ebp]
cmp edi, ecx
jbe 0x470175
call fcn.004a067d
cmp dword [esp + 0x88], 0x10
mov eax, dword [esp + 0x74]
jae 0x470187
lea eax, [esp + 0x74]
mov cl, byte [edi + eax]
cmp bl, 0xfe
je 0x470201
cmp cl, 0xfe
je 0x470201
mov al, byte [esi + 0xfa5]
mov dl, byte [esi + 0x858]
add dl, al
dec dl
xor cl, dl
mov edx, dword [esp + 0x3c]
xor bl, al
push 0
mov byte [esp + 0x19], cl
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x18]
push eax
add edi, 2
push ecx
mov dword [esp + 0x38], edi
mov edi, dword [esi + 0xfa0]
push edx
mov ecx, esi
add ebp, 2
mov dword [esi + 0xfa0], 0
mov byte [esp + 0x24], bl
call fcn.0046e8b0
mov eax, dword [esi + 0xc8]
add eax, dword [esp + 0x44]
mov dword [esi + 0xfa0], edi
add dword [esi + 0x1c4], eax
mov edi, dword [esp + 0x2c]
jmp 0x470225
inc ebp
inc edi
cmp ebp, dword [esp + 0x20]
je 0x47022f
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 + 0x20]
jl 0x470140
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
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, ebx
mov dword [esp + 0x1c], eax
jl 0x4700a8
mov ebp, dword [esp + 0x30]
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x480]
mov edx, dword [eax + 0x5c]
add eax, 0x4c
mov dword [esi + 0x540], edx
mov edx, dword [eax + 0x14]
mov dword [esi + 0x544], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x548], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x534], edx
mov edx, dword [eax]
mov dword [esi + 0x530], edx
mov edx, dword [eax + 8]
mov dword [esi + 0x538], edx
mov eax, dword [eax + 0xc]
xor edx, edx
cmp ebp, 0xffffffff
setne dl
mov dword [esi + 0x53c], eax
mov eax, dword [esp + 0x60]
mov esi, edx
cmp eax, ecx
je 0x4702d7
push eax
call fcn.0048f8b2
add esp, 4
xor ecx, ecx
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
call fcn.0048f8b2
add esp, 4
cmp dword [esp + 0x88], 0x10
jb 0x470307
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0048f8b2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004a0abf
add esp, 0x88
ret 0x10