Function at 0x46f690
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 edi, edi
mov esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x94], edi
call fcn.0043abe0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], edi
mov dword [esp + 0x68], edi
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.00458400
mov ebp, eax
mov eax, dword [esi + 0x228]
mov dword [esp + 0x24], ebp
cmp eax, 1
je 0x46f74b
cmp eax, 2
jne 0x46f7a0
mov ecx, dword [esi + 0x17c]
mov edx, dword [esi + 0x178]
mov eax, dword [esi + 0x174]
mov ebx, dword [sym.imp.user32.dll_SetRect]
push ecx
mov ecx, dword [esi + 0x170]
push edx
push eax
push ecx
lea edx, [esi + 0x530]
push edx
call ebx
mov eax, dword [esi + 0x234]
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x21c], eax
mov eax, dword [esi + 0x1c4]
lea edi, [esi + 0x4a8]
mov dword [esi + 0x218], eax
mov dword [esp + 0x14], edi
jmp 0x46f7aa
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.user32.dll_SetRect]
cmp dword [esi + 0x228], 3
jne 0x46f808
mov ecx, dword [esi + 0x3c4]
mov edx, dword [esi + 0x3c0]
mov eax, dword [esi + 0x3bc]
push ecx
mov ecx, dword [esi + 0x3b8]
push edx
push eax
push ecx
lea edx, [esi + 0x530]
push edx
call ebx
mov eax, dword [esi + 0x3bc]
mov ecx, dword [esi + 0x3b8]
mov dword [esi + 0x21c], eax
mov dword [esi + 0x1c8], eax
lea eax, [esi + 0x30c]
mov dword [esi + 0x218], ecx
mov dword [esi + 0x1c4], ecx
mov dword [esp + 0x14], eax
mov edi, eax
cmp dword [esi + 0x228], 4
jne 0x46f866
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 ebx
mov eax, dword [esi + 0x46c]
mov ecx, dword [esi + 0x468]
mov dword [esi + 0x21c], eax
mov dword [esi + 0x1c8], eax
lea eax, [esi + 0x3d8]
mov dword [esi + 0x218], ecx
mov dword [esi + 0x1c4], ecx
mov dword [esp + 0x14], eax
mov edi, eax
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x2c], ecx
cmp dword [edi + 0x58], ebp
je 0x46fb77
mov edx, dword [esi + 0x48c]
mov eax, dword [esi + 0x490]
mov dword [edi + 0x58], ebp
mov dword [edi + 0x5c], 1
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
xor ebp, ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], ebp
test ebx, ebx
jle 0x46fa83
mov dword [esp + 0x20], ebp
jmp 0x46f8d4
mov ebp, dword [esp + 0x1c]
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 ebp, ecx
jb 0x46f8f6
call fcn.004a067d
mov edx, dword [edi + 0x28]
add edx, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esp + 0x78]
call fcn.004017c0
cmp dword [esi + 0x888], 0xffffffff
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
je 0x46f93a
cmp dword [esi + 0x878], 0
jne 0x46f93a
cmp ebp, dword [edi + 0x58]
jne 0x46f935
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x20], ecx
jmp 0x46f94e
mov edx, dword [esi + 0x30]
jmp 0x46f94b
cmp ebp, dword [edi + 0x58]
jne 0x46f948
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], ecx
jmp 0x46f94e
mov edx, dword [esi + 0x28]
mov dword [esi + 0x20], edx
xor ebp, ebp
test eax, eax
jle 0x46fa57
mov byte [esp + 0x1a], 0
lea edi, [ebp + 1]
jmp 0x46f969
mov eax, dword [esp + 0x80]
cmp ebp, eax
jbe 0x46f972
call fcn.004a067d
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x46f984
lea eax, [esp + 0x70]
mov bl, byte [eax + ebp]
cmp edi, dword [esp + 0x80]
jbe 0x46f995
call fcn.004a067d
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x46f9a7
lea eax, [esp + 0x70]
mov cl, byte [edi + eax]
cmp bl, 0xfe
je 0x46fa21
cmp cl, 0xfe
je 0x46fa21
mov al, byte [esi + 0xfa5]
mov dl, byte [esi + 0x858]
add dl, al
dec dl
xor cl, dl
mov edx, dword [esp + 0x38]
xor bl, al
push 0
mov byte [esp + 0x1d], cl
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0x1c]
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 + 0x28], bl
call fcn.0046e8b0
mov eax, dword [esi + 0xc8]
add eax, dword [esp + 0x40]
mov dword [esi + 0xfa0], edi
add dword [esi + 0x1c4], eax
mov edi, dword [esp + 0x34]
jmp 0x46fa45
inc ebp
inc edi
cmp ebp, dword [esp + 0x28]
je 0x46fa4f
mov edx, dword [esi + 0x490]
add edx, dword [esi + 0xcc]
mov ecx, dword [esp + 0x2c]
add dword [esi + 0x1c8], edx
mov dword [esi + 0x1c4], ecx
cmp ebp, dword [esp + 0x28]
jl 0x46f962
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x380]
add dword [esi + 0x1c8], ecx
add dword [esp + 0x20], 0x1c
mov dword [esi + 0x1c4], eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x46f8d0
mov ebx, dword [sym.imp.user32.dll_SetRect]
mov ebp, dword [esp + 0x24]
cmp dword [esi + 0x228], 3
mov edx, dword [esp + 0x30]
mov dword [esi + 0x20], edx
jne 0x46facc
mov eax, dword [esi + 0x3a8]
mov ecx, dword [esi + 0x3c4]
mov edx, dword [esi + 0x3c0]
add ecx, eax
push ecx
mov ecx, dword [esi + 0x3b8]
add edx, eax
mov eax, dword [esi + 0x3bc]
push edx
push eax
push ecx
lea edx, [esi + 0x530]
push edx
call ebx
mov eax, dword [esi + 0x228]
cmp eax, 1
je 0x46fadc
cmp eax, 2
jne 0x46fb01
mov eax, dword [esi + 0x17c]
mov ecx, dword [esi + 0x178]
mov edx, dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push ecx
push edx
push eax
add esi, 0x530
push esi
call ebx
mov eax, dword [esp + 0x5c]
xor ecx, ecx
cmp ebp, 0xffffffff
setne cl
mov esi, ecx
test eax, eax
je 0x46fb1c
push eax
call fcn.0048f8b2
add esp, 4
mov edx, dword [esp + 0x50]
xor eax, eax
push edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call fcn.0048f8b2
add esp, 4
cmp dword [esp + 0x84], 0x10
jb 0x46fb4e
mov eax, dword [esp + 0x70]
push eax
call fcn.0048f8b2
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.004a0abf
add esp, 0x84
ret 0x10
mov dword [edi + 0x5c], 0
jmp 0x46fa8d