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

Disassembly:
push 0xffffffffffffffff
push 0x4372bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xcc]
push edi
mov edi, ecx
mov eax, 0xfffffffe
xor ebx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
or ecx, 0xffffffff
lea eax, [edi + 0x110]
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ecx
mov ecx, dword [eax]
push 8
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x1c]
neg eax
lea edx, [ecx + eax*2]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x417a1b
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea ebp, [edi + 0x120]
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x417a1b
mov eax, dword [esi + 4]
mov ebx, dword [edi + 0x124]
mov ecx, dword [esi + 8]
xor edx, edx
cmp eax, ebx
setge dl
dec edx
and edx, 0x100
or ecx, edx
xor edx, edx
mov dword [esi + 8], ecx
mov ebx, dword [edi + 0x12c]
cmp eax, ebx
setle dl
dec edx
and edx, 0x200
mov eax, edx
mov edx, dword [esi]
or eax, ecx
xor ecx, ecx
mov dword [esi + 8], eax
mov ebx, dword [ebp]
cmp edx, ebx
setge cl
dec ecx
and ecx, 0x800
or ecx, eax
xor eax, eax
mov dword [esi + 8], ecx
mov ebp, dword [edi + 0x128]
cmp edx, ebp
setle al
dec eax
and eax, 0x400
or eax, ecx
mov dword [esi + 8], eax
jmp 0x417f06
push ebx
push ebx
mov ecx, edi
call fcn.0041ada0
push ebx
push 1
mov ecx, edi
mov ebp, eax
call fcn.0041ada0
mov ecx, dword [edi + 0x138]
mov edx, dword [esi + 4]
mov dword [esp + 0x20], eax
mov eax, ebp
neg eax
add ecx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x417a7d
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
or al, 0x40
mov dword [esi + 8], eax
jmp 0x417c38
lea edx, [esp + 0x28]
push ebx
lea eax, [esp + 0x24]
push edx
push eax
push ebx
mov ecx, edi
call fcn.0041a8a0
test eax, eax
je 0x417eff
lea ecx, [esp + 0x2c]
call fcn.00414ee0
or eax, 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [edi + 0x138]
mov eax, dword [edi + 0x120]
mov edx, dword [edi + 0x124]
sub ecx, ebp
add ecx, eax
push edx
sub eax, ebp
push ecx
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0xdc], ebx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x417c19
lea edx, [esp + 0x2c]
mov ecx, edi
push edx
push eax
call fcn.00419c20
mov eax, dword [edi + 0x5c]
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 0x134]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, edx
mov edx, dword [esi]
add ecx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x417b5a
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x417afa
jmp 0x417c19
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x417c19
push eax
mov ecx, edi
call fcn.00419bf0
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], edx
mov ecx, dword [edi + 0x54]
test ch, 0xc0
je 0x417b9e
cmp eax, ebx
jl 0x417b9e
mov edx, dword [edi + 0x158]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*4 + 0x18]
mov dword [esi + 0xc], eax
cmp dword [edi + 0x5c], ebx
je 0x417c11
cmp dword [esp + 0x34], ebx
je 0x417c11
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x134]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
add edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi]
mov dword [esp + 0x50], edx
push eax
lea edx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x417c11
mov eax, dword [esi + 8]
lea ecx, [esp + 0x2c]
or al, 0x10
mov dword [esp + 0xc8], 0xffffffff
mov dword [esi + 8], eax
mov esi, dword [esi + 0x10]
call fcn.00414ef0
mov eax, esi
jmp 0x417f09
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc8], 0xffffffff
call fcn.00414ef0
cmp dword [esp + 0x24], 1
jne 0x417eff
mov eax, dword [edi + 0x54]
test ah, 0xc0
je 0x417cb1
mov eax, dword [esi + 0x10]
mov edx, dword [edi + 0x158]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*4 + 0x18]
mov eax, dword [eax + 0x10]
cmp eax, ebx
jl 0x417cb1
push ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ebx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x20]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xc], ecx
mov edx, dword [edi + 0x138]
mov ecx, dword [eax]
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x28], edx
mov eax, dword [edi + 0x134]
add eax, ecx
mov dword [esi + 0x2c], eax
jmp 0x417d56
mov eax, dword [edi + 0x11d0]
mov ecx, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x94], 9
mov dword [esp + 0x18], ecx
jle 0x417d18
mov eax, dword [edi + 0x1268]
lea edx, [esp + 0x2c]
push edx
push ebx
push 0x1207
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x2c]
add eax, ebp
cmp eax, ecx
jl 0x417d05
mov edx, dword [esp + 0x34]
cmp eax, edx
jl 0x417d10
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x417cd2
jmp 0x417d18
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x1268]
lea edx, [esp + 0x94]
push edx
push ebx
push 0x1203
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0xac]
mov ecx, edi
push eax
mov dword [esi + 0x14], eax
call fcn.00419ed0
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x24]
cmp ebx, eax
jge 0x417eff
xor ebx, ebx
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
push ecx
mov ecx, edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0xfffffffe
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.00419bf0
mov edx, dword [esi + 0x14]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
mov dword [esp + 0x68], edx
call fcn.00416310
cmp dword [esi + 0x1c], ebx
jne 0x417e66
mov eax, dword [esp + 0x5c]
test ah, 1
je 0x417e66
mov ecx, dword [esp + 0x84]
cmp ecx, ebx
jl 0x417e66
mov eax, dword [edi + 0x134]
mov edx, eax
imul edx, ecx
mov ecx, dword [esp + 0x10]
add ecx, edx
mov dl, byte [esp + 0x88]
test dl, 0x60
mov dword [esp + 0x10], ecx
je 0x417e66
mov edx, ecx
sub edx, eax
mov eax, dword [esi]
cmp eax, edx
jl 0x417e66
cmp eax, ecx
jge 0x417e66
lea eax, [esi + 0x20]
mov ebx, dword [esp + 0x18]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
mov edx, dword [edi + 0x134]
mov ebx, dword [esi + 0x28]
add edx, ebp
mov ebp, dword [eax]
sub ebp, edx
mov dword [eax], ebp
mov eax, ebp
sub ebx, eax
mov dword [esi + 0x28], ebx
mov eax, dword [edi + 0x134]
add eax, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 8]
or al, 0x20
mov dword [esi + 8], eax
jmp 0x417f06
mov ecx, dword [esp + 0x48]
push ebx
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x20]
mov ebx, dword [esp + 0x18]
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx + 0xc], ebx
mov edx, dword [edi + 0x134]
add edx, eax
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x4c]
mov dl, byte [esp + 0x5c]
add ecx, eax
test dl, 4
je 0x417ec7
mov ebx, dword [edi + 0x7c]
add ebx, eax
add ecx, ebx
mov ebx, dword [esi]
cmp ebx, ecx
jge 0x417ec7
mov eax, dword [esi + 8]
or al, 2
mov dword [esi + 8], eax
jmp 0x417f06
test dl, 8
je 0x417ee6
mov edx, dword [edi + 0x84]
add edx, eax
add ecx, edx
mov edx, dword [esi]
cmp edx, ecx
jge 0x417ee6
mov eax, dword [esi + 8]
or al, 4
mov dword [esi + 8], eax
jmp 0x417f06
mov edx, dword [esi]
cmp edx, ecx
jl 0x417eff
mov ecx, dword [esi + 0x28]
sub ecx, eax
cmp edx, ecx
jge 0x417eff
mov eax, dword [esi + 8]
or al, 8
mov dword [esi + 8], eax
jmp 0x417f06
mov dword [esi + 8], 1
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret 4