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

Disassembly:
push 0xffffffffffffffff
push 0x460940
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x484904]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x30]
call fcn.0041f550
lea esi, [edi + 0xec]
mov ecx, esi
mov dword [esp + 0x90], 0
call fcn.00420330
lea ebx, [edi + 0x10c]
mov ecx, ebx
call fcn.00420330
mov ecx, dword [esp + 0x98]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
push eax
mov dword [edi + 0xd8], ecx
call fcn.00422420
call fcn.0040d030
add esp, 0xc
cmp eax, 8
jne 0x4166df
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x3d
push ecx
mov ecx, 0x491608
call fcn.0041a8c0
mov ecx, esi
call fcn.004202a0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x469320
call fcn.0041f3f0
mov ecx, ebx
call fcn.004202a0
jmp 0x4168d1
mov ecx, dword [edi + 0xd8]
xor esi, esi
call fcn.00422650
test eax, eax
jle 0x4168d1
mov bl, 3
mov ecx, dword [edi + 0xd8]
push esi
call fcn.00422630
mov ecx, eax
call fcn.00420b80
test eax, eax
jne 0x4168bb
mov ecx, dword [edi + 0xd8]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x28], esp
push edx
push esi
call fcn.00422630
mov ecx, eax
call fcn.00422420
lea ecx, [edi + 0x10c]
call fcn.004202a0
mov ecx, dword [edi + 0xd8]
push esi
xor ebp, ebp
call fcn.00422630
mov ecx, eax
call fcn.00420bb0
test eax, eax
jle 0x4168bb
jmp 0x416760
mov ecx, dword [edi + 0xd8]
lea eax, [esp + 0x48]
push eax
push ebp
push esi
call fcn.00422630
mov ecx, eax
call fcn.00420b90
mov ecx, eax
call fcn.00425da0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 1
call fcn.0041f3c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x90], 0
call fcn.0041f1d0
mov ecx, dword [edi + 0xd8]
push ebp
push esi
call fcn.00422630
mov ecx, eax
call fcn.00420b90
mov ecx, eax
call fcn.00425d90
cmp eax, 8
jne 0x41689d
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
call fcn.0041f330
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 2
call fcn.0041f1c0
cmp eax, 2
jle 0x416811
lea ecx, [esp + 0x24]
call fcn.0041f1c0
sub eax, 2
push eax
push 2
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x30]
call fcn.0041f6c0
lea ecx, [esp + 0x3c]
call fcn.0041f1d0
sub esp, 0xc
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041f330
lea ecx, [esp + 0x60]
push ecx
mov ecx, 0x491608
call fcn.0041ab70
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], bl
call fcn.0041f3c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x90], 2
call fcn.0041f1d0
push 0x467770
lea ecx, [esp + 0x28]
call fcn.0041f200
sub esp, 0xc
test al, al
mov ecx, esp
mov dword [esp + 0x28], esp
je 0x416877
lea edx, [esp + 0x3c]
push edx
jmp 0x41687c
lea eax, [esp + 0x30]
push eax
call fcn.0041f330
lea ecx, [edi + 0xec]
call fcn.004202a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 0
call fcn.0041f1d0
mov ecx, dword [edi + 0xd8]
push esi
add ebp, 1
call fcn.00422630
mov ecx, eax
call fcn.00420bb0
cmp ebp, eax
jl 0x416760
mov ecx, dword [edi + 0xd8]
add esi, 1
call fcn.00422650
cmp esi, eax
jl 0x4166f6
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xc
push ecx
call fcn.0040cb30
add esp, 8
mov ecx, 0x491520
call fcn.00419490
mov esi, eax
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
call fcn.00422650
test eax, eax
jle 0x416b25
lea ebx, [ebx]
push ebx
mov ecx, esi
call fcn.00422630
mov ebp, eax
mov ecx, ebp
call fcn.00420b80
cmp eax, 0xd
jne 0x416b0b
mov ecx, ebp
mov byte [esp + 0x17], 0
xor ebx, ebx
call fcn.00420bb0
test eax, eax
jle 0x416b0b
lea edx, [esp + 0x54]
push edx
push ebx
mov ecx, ebp
call fcn.00420b90
mov ecx, eax
call fcn.00425da0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], 4
call fcn.0041f3c0
lea ecx, [esp + 0x54]
mov byte [esp + 0x90], 0
call fcn.0041f1d0
push ebx
mov ecx, ebp
call fcn.00420b90
mov ecx, eax
call fcn.00425d90
sub eax, 0x31
je 0x416ac8
sub eax, 1
jne 0x416af9
cmp byte [esp + 0x17], 1
jne 0x416af9
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.00422630
mov ecx, eax
call fcn.00422420
mov edx, dword [esp + 0x40]
push edx
call fcn.00444348
add esp, 4
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0041f1d0
sub esp, 0xc
lea ecx, [esi + esi*2]
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00402d80
lea ecx, [edi + 0x10c]
call fcn.004202a0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
call fcn.0041f330
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 5
call fcn.0041f1c0
cmp eax, 2
jle 0x416a39
lea ecx, [esp + 0x24]
call fcn.0041f1c0
sub eax, 2
push eax
push 2
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x30]
call fcn.0041f6c0
lea ecx, [esp + 0x60]
call fcn.0041f1d0
sub esp, 0xc
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0041f330
lea eax, [esp + 0x78]
push eax
mov ecx, 0x491608
call fcn.0041ab70
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 6
call fcn.0041f3c0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x90], 5
call fcn.0041f1d0
push 0x467770
lea ecx, [esp + 0x28]
call fcn.0041f200
sub esp, 0xc
test al, al
mov ecx, esp
mov dword [esp + 0x2c], esp
je 0x416aa0
lea edx, [esp + 0x3c]
push edx
jmp 0x416aa5
lea eax, [esp + 0x30]
push eax
call fcn.0041f330
lea ecx, [edi + 0xec]
call fcn.004202a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 0
call fcn.0041f1d0
jmp 0x416af5
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0041f330
mov edx, dword [esp + 0x4c]
push edx
call fcn.00444348
add esp, 4
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.0041f1d0
test esi, esi
setne byte [esp + 0x17]
mov esi, dword [esp + 0x1c]
mov ecx, ebp
add ebx, 1
call fcn.00420bb0
cmp ebx, eax
jl 0x416940
mov ebx, dword [esp + 0x18]
add ebx, 1
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.00422650
cmp ebx, eax
jl 0x416910
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0xe8]
mov esi, dword [edi + 0x108]
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x7c]
add ecx, 4
imul ecx, esi
sub eax, ecx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
xor ebp, ebp
test esi, esi
mov dword [esp + 0x18], 1
jle 0x416bbc
xor esi, esi
test esi, esi
jl 0x416cc6
cmp ebp, dword [edi + 0xfc]
jge 0x416cc6
mov ecx, dword [edi + 0xf8]
add ecx, esi
call fcn.0041f1c0
cmp eax, dword [esp + 0x18]
jle 0x416bae
cmp ebp, dword [edi + 0xfc]
jge 0x416cc6
mov ecx, dword [edi + 0xf8]
add ecx, esi
call fcn.0041f1c0
mov dword [esp + 0x18], eax
add ebp, 1
add esi, 0xc
cmp ebp, dword [edi + 0x108]
jl 0x416b6a
mov edx, dword [edi + 0xe4]
imul edx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
sub eax, edx
sub eax, dword [edi + 0xe0]
xor esi, esi
sub eax, dword [esp + 0x78]
cdq
sub eax, edx
sar eax, 1
cmp dword [edi + 0x108], esi
mov dword [esp + 0x1c], eax
jle 0x416c96
xor ebp, ebp
test ebp, ebp
jl 0x416cc6
cmp esi, dword [edi + 0xfc]
jge 0x416cc6
mov eax, dword [edi + 0xf8]
sub esp, 0xc
add eax, ebp
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0041f330
cmp esi, dword [edi + 0x11c]
mov eax, dword [esp + 0x28]
push 1
push ebx
mov byte [esp + 0xa4], 7
push eax
jge 0x416cc6
mov eax, dword [edi + 0x118]
add eax, ebp
push eax
lea ecx, [esp + 0x64]
call fcn.0041f330
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00444348
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x30], eax
call fcn.0041f1d0
mov edx, dword [esp + 0x30]
push edx
mov ecx, edi
mov byte [esp + 0xac], 0
call fcn.004163a0
mov eax, dword [edi + 0xe8]
add esi, 1
add ebp, 0xc
cmp esi, dword [edi + 0x108]
lea ebx, [ebx + eax + 4]
jl 0x416bf3
lea ecx, [esp + 0x30]
mov dword [esp + 0x90], 0xffffffff
call fcn.0041f1d0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
call fcn.00428114
int3