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

Disassembly:
push 0xffffffffffffffff
push 0x4638a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x2c]
call fcn.004227a0
lea esi, [edi + 0xec]
mov ecx, esi
mov dword [esp + 0x8c], 0
call fcn.00423180
lea ebx, [edi + 0x10c]
mov ecx, ebx
call fcn.00423180
mov ecx, dword [esp + 0x94]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov dword [edi + 0xd8], ecx
call fcn.00425d80
call fcn.0040d880
add esp, 0xc
cmp eax, 8
jne 0x417641
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x3d
push ecx
mov ecx, 0x4935e4
call fcn.0041c030
mov ecx, esi
call fcn.004230f0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x46b710
call fcn.00422640
mov ecx, ebx
call fcn.004230f0
jmp 0x417831
mov ecx, dword [edi + 0xd8]
xor esi, esi
call fcn.00425fe0
test eax, eax
jle 0x417831
mov bl, 3
mov ecx, dword [edi + 0xd8]
push esi
call fcn.00425fc0
mov ecx, eax
call fcn.004241c0
test eax, eax
jne 0x41781b
mov ecx, dword [edi + 0xd8]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x24], esp
push edx
push esi
call fcn.00425fc0
mov ecx, eax
call fcn.004241d0
lea ecx, [edi + 0x10c]
call fcn.004230f0
mov ecx, dword [edi + 0xd8]
push esi
xor ebp, ebp
call fcn.00425fc0
mov ecx, eax
call fcn.00424240
test eax, eax
jle 0x41781b
jmp 0x4176c0
mov ecx, dword [edi + 0xd8]
lea eax, [esp + 0x44]
push eax
push ebp
push esi
call fcn.00425fc0
mov ecx, eax
call fcn.00424220
mov ecx, eax
call fcn.004296e0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 1
call fcn.00422610
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 0
call fcn.00422390
mov ecx, dword [edi + 0xd8]
push ebp
push esi
call fcn.00425fc0
mov ecx, eax
call fcn.00424220
mov ecx, eax
call fcn.004296d0
cmp eax, 8
jne 0x4177fd
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00422580
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
call fcn.00422380
cmp eax, 2
jle 0x417771
lea ecx, [esp + 0x20]
call fcn.00422380
sub eax, 2
push eax
push 2
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x2c]
call fcn.00422930
lea ecx, [esp + 0x38]
call fcn.00422390
sub esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00422580
lea ecx, [esp + 0x5c]
push ecx
mov ecx, 0x4935e4
call fcn.0041c2e0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], bl
call fcn.00422610
lea ecx, [esp + 0x50]
mov byte [esp + 0x8c], 2
call fcn.00422390
push 0x469780
lea ecx, [esp + 0x24]
call fcn.004223c0
sub esp, 0xc
test al, al
mov ecx, esp
mov dword [esp + 0x24], esp
je 0x4177d7
lea edx, [esp + 0x38]
push edx
jmp 0x4177dc
lea eax, [esp + 0x2c]
push eax
call fcn.00422580
lea ecx, [edi + 0xec]
call fcn.004230f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0
call fcn.00422390
mov ecx, dword [edi + 0xd8]
push esi
add ebp, 1
call fcn.00425fc0
mov ecx, eax
call fcn.00424240
cmp ebp, eax
jl 0x4176c0
mov ecx, dword [edi + 0xd8]
add esi, 1
call fcn.00425fe0
cmp esi, eax
jl 0x417658
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push 0xc
push ecx
call fcn.0040d380
add esp, 8
mov ecx, 0x493500
call fcn.00419f90
mov esi, eax
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
call fcn.00425fe0
test eax, eax
jle 0x417a85
lea ebx, [ebx]
push ebx
mov ecx, esi
call fcn.00425fc0
mov ebp, eax
mov ecx, ebp
call fcn.004241c0
cmp eax, 0xd
jne 0x417a6b
mov ecx, ebp
mov byte [esp + 0x13], 0
xor ebx, ebx
call fcn.00424240
test eax, eax
jle 0x417a6b
lea edx, [esp + 0x50]
push edx
push ebx
mov ecx, ebp
call fcn.00424220
mov ecx, eax
call fcn.004296e0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 4
call fcn.00422610
lea ecx, [esp + 0x50]
mov byte [esp + 0x8c], 0
call fcn.00422390
push ebx
mov ecx, ebp
call fcn.00424220
mov ecx, eax
call fcn.004296d0
sub eax, 0x31
je 0x417a28
sub eax, 1
jne 0x417a59
cmp byte [esp + 0x13], 1
jne 0x417a59
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.00425fc0
mov ecx, eax
call fcn.004241d0
mov edx, dword [esp + 0x3c]
push edx
call fcn.00447162
add esp, 4
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.00422390
sub esp, 0xc
lea ecx, [esi + esi*2]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00416f50
lea ecx, [edi + 0x10c]
call fcn.004230f0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call fcn.00422580
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 5
call fcn.00422380
cmp eax, 2
jle 0x417999
lea ecx, [esp + 0x20]
call fcn.00422380
sub eax, 2
push eax
push 2
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00422930
lea ecx, [esp + 0x5c]
call fcn.00422390
sub esp, 0xc
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00422580
lea eax, [esp + 0x74]
push eax
mov ecx, 0x4935e4
call fcn.0041c2e0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], 6
call fcn.00422610
lea ecx, [esp + 0x68]
mov byte [esp + 0x8c], 5
call fcn.00422390
push 0x469780
lea ecx, [esp + 0x24]
call fcn.004223c0
sub esp, 0xc
test al, al
mov ecx, esp
mov dword [esp + 0x28], esp
je 0x417a00
lea edx, [esp + 0x38]
push edx
jmp 0x417a05
lea eax, [esp + 0x2c]
push eax
call fcn.00422580
lea ecx, [edi + 0xec]
call fcn.004230f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0
call fcn.00422390
jmp 0x417a55
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x48]
call fcn.00422580
mov edx, dword [esp + 0x48]
push edx
call fcn.00447162
add esp, 4
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.00422390
test esi, esi
setne byte [esp + 0x13]
mov esi, dword [esp + 0x18]
mov ecx, ebp
add ebx, 1
call fcn.00424240
cmp ebx, eax
jl 0x4178a0
mov ebx, dword [esp + 0x14]
add ebx, 1
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.00425fe0
cmp ebx, eax
jl 0x417870
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x74]
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 + 0x80]
sub eax, dword [esp + 0x78]
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 + 0x14], 1
jle 0x417b1c
xor esi, esi
test esi, esi
jl 0x417c22
cmp ebp, dword [edi + 0xfc]
jge 0x417c22
mov ecx, dword [edi + 0xf8]
add ecx, esi
call fcn.00422380
cmp eax, dword [esp + 0x14]
jle 0x417b0e
cmp ebp, dword [edi + 0xfc]
jge 0x417c22
mov ecx, dword [edi + 0xf8]
add ecx, esi
call fcn.00422380
mov dword [esp + 0x14], eax
add ebp, 1
add esi, 0xc
cmp ebp, dword [edi + 0x108]
jl 0x417aca
mov edx, dword [edi + 0xe4]
imul edx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
sub eax, edx
sub eax, dword [edi + 0xe0]
xor esi, esi
sub eax, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
cmp dword [edi + 0x108], esi
mov dword [esp + 0x18], eax
jle 0x417bf3
xor ebp, ebp
test ebp, ebp
jl 0x417c22
cmp esi, dword [edi + 0xfc]
jge 0x417c22
mov eax, dword [edi + 0xf8]
sub esp, 0xc
add eax, ebp
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00422580
cmp esi, dword [edi + 0x11c]
mov eax, dword [esp + 0x24]
push 1
push ebx
mov byte [esp + 0xa0], 7
push eax
jge 0x417c22
mov eax, dword [edi + 0x118]
add eax, ebp
push eax
lea ecx, [esp + 0x60]
call fcn.00422580
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00447162
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], eax
call fcn.00422390
mov edx, dword [esp + 0x2c]
push edx
mov ecx, edi
mov byte [esp + 0xa8], 0
call fcn.004172f0
mov eax, dword [edi + 0xe8]
add esi, 1
add ebp, 0xc
cmp esi, dword [edi + 0x108]
lea ebx, [ebx + eax + 4]
jl 0x417b50
lea ecx, [esp + 0x2c]
mov dword [esp + 0x8c], 0xffffffff
call fcn.00422390
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret 4
call fcn.0042bba0
int3