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

Disassembly:
push 0xffffffffffffffff
push 0x4db400
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x51d260]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51d260]
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 + 0x40], eax
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebp
mov byte [esp + 0x70], 0
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x94], ebp
call fcn.0043abe0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x68], ebp
mov ecx, esi
mov byte [esp + 0x94], 1
call fcn.004686c0
cmp dword [esi + 0x228], 4
jne 0x46fc83
mov edx, dword [esi + 0x474]
mov eax, dword [esi + 0x470]
mov ecx, dword [esi + 0x46c]
push edx
mov edx, dword [esi + 0x468]
push eax
push ecx
push edx
lea eax, [esi + 0x530]
push eax
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 + 0x18], edi
jmp 0x46fc87
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x5c], ebp
je 0x46fe97
mov edx, dword [esi + 0x48c]
mov eax, dword [esi + 0x490]
mov dword [edi + 0x5c], ebp
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp ebx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebp
jle 0x46fe97
mov dword [esp + 0x20], ebp
mov edi, edi
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 dword [esp + 0x1c], ecx
jb 0x46fd04
call fcn.004a067d
mov edx, dword [edi + 0x28]
add edx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebp
push edx
lea ecx, [esp + 0x78]
call fcn.004017c0
mov ecx, dword [esp + 0x80]
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 + 0x24], eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x46fe6a
mov byte [esp + 0x16], 0
lea edi, [ebp + 1]
jmp 0x46fd7c
mov ecx, dword [esp + 0x80]
cmp ebp, ecx
jbe 0x46fd8c
call fcn.004a067d
mov ecx, dword [esp + 0x80]
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x46fd9e
lea eax, [esp + 0x70]
mov bl, byte [eax + ebp]
cmp edi, ecx
jbe 0x46fdaa
call fcn.004a067d
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x46fdbc
lea eax, [esp + 0x70]
mov cl, byte [edi + eax]
cmp bl, 0xfe
je 0x46fe36
cmp cl, 0xfe
je 0x46fe36
mov al, byte [esi + 0xfa5]
mov dl, byte [esi + 0x858]
add dl, al
dec dl
xor cl, dl
mov edx, dword [esp + 0x40]
xor bl, al
push 0
mov byte [esp + 0x19], cl
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0x18]
push eax
add edi, 2
push ecx
mov dword [esp + 0x40], 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 + 0x38]
mov dword [esi + 0xfa0], edi
add dword [esi + 0x1c4], eax
mov edi, dword [esp + 0x34]
jmp 0x46fe54
inc ebp
inc edi
cmp ebp, dword [esp + 0x28]
je 0x46fe5e
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x490]
add dword [esi + 0x1c8], edx
mov dword [esi + 0x1c4], ecx
cmp ebp, dword [esp + 0x28]
jl 0x46fd75
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x20], 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
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x46fce0
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 + 0x44]
mov dword [esi + 0x224], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x220], edx
mov dword [esi + 0x20], ecx
mov dword [edi + 0x54], 1
cmp eax, ebp
je 0x46fedb
push eax
call fcn.0048f8b2
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.0048f8b2
add esp, 4
cmp dword [esp + 0x84], 0x10
jb 0x46ff0b
mov eax, dword [esp + 0x70]
push eax
call fcn.0048f8b2
add esp, 4
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.004a0abf
add esp, 0x84
ret 8