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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51607b
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, ebx
je 0x4360b2
mov ecx, dword [ecx + 0x20]
mov eax, 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x4c], 8
mov dword [esp + 0x58], 0xe
mov dword [esp + 0x5c], 9
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x20]
push fcn.00404bc0
push fcn.00477dd0
push 5
push 4
lea edx, [esp + 0x40]
push edx
sub edi, 2
call fcn.004e33d9
push 0x13b
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x90], ebx
call fcn.0041c760
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], 1
call fcn.00404e60
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435e36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x13c
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c760
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 2
call fcn.00404e60
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435e7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x13d
lea ecx, [esp + 0x18]
push ecx
call fcn.0041c760
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8c], 3
call fcn.00404e60
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435ec8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x13e
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c760
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x8c], 4
call fcn.00404e60
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435f11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x61f
lea ecx, [esp + 0x20]
push ecx
call fcn.0041c760
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 5
call fcn.00404e60
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435f5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
push 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub edi, eax
xor esi, esi
lea esp, [esp]
cmp dword [esp + esi*4 + 0x30], ebx
je 0x436034
mov edx, esi
mov ecx, 1
sub edx, ecx
neg edx
sbb edx, edx
and edx, 2
cmp esi, 5
mov dword [esp + 0x5c], 0x1f
mov dword [esp + 0x60], edx
jne 0x435fbf
mov dword [esp + 0x60], ecx
mov eax, dword [esp + esi*4 + 0x30]
lea ebx, [esp + esi*4 + 0x30]
sub eax, 0x10
cmp dword [eax + 0xc], ecx
jle 0x435fda
mov eax, dword [eax + 4]
push eax
mov ecx, ebx
call fcn.00405430
cmp dword [esp + esi*4 + 0x34], 0
mov ecx, dword [ebx]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], esi
jne 0x435ff6
mov eax, edi
sub eax, dword [esp + 0x14]
sub eax, 2
jmp 0x436006
mov eax, dword [esp + esi*4 + 0x44]
imul eax, edi
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
add dword [esp + 0x14], eax
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push esi
push 0x101b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 1
xor ebx, ebx
cmp esi, 5
jl 0x435f90
xor eax, eax
xor esi, esi
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
je 0x436094
mov edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
lea edx, [esp + 0x5c]
push edx
push esi
push 0x101a
push ecx
mov dword [esp + 0x6c], 9
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], esi
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 1
cmp dword [esp + esi*4 + 0x30], ebx
jne 0x436060
push fcn.00404bc0
push 5
push 4
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x98], 0xffffffff
call fcn.004e3376
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4