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

Disassembly:
push 0xffffffffffffffff
push 0x50f6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5426a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x55f58c]
mov edx, dword [esi + 0x600]
mov edx, dword [edx + 0x138]
push 0x48f
push esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x34]
lea ecx, [esi + 0x600]
push eax
push 0x50000002
xor edi, edi
mov ebx, 1
push 0x20000
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], ecx
call edx
mov eax, dword [esi + 0x6b0]
cmp eax, edi
je 0x407aff
push eax
call fcn.00479abb
add esp, 4
mov dword [esi + 0x6b0], edi
push ebx
push 0x15180
lea ecx, [esi + 0x654]
push edi
mov dword [esi + 0x6b8], edi
mov dword [esi + 0x6b4], edi
mov dword [esp + 0x2c], ecx
call fcn.004802d7
mov eax, dword [esi + 0x674]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x415
push eax
call ebp
push 1
push 0xe10
lea ebx, [esi + 0x6c0]
push edi
mov ecx, ebx
call fcn.004802d7
mov ecx, dword [esi + 0x6e0]
push edi
push edi
push 0x415
push ecx
call ebp
mov edx, dword [esi + 0xa0]
mov eax, dword [esi + 0x94]
push 1
push 0x14
push 0x38
add edx, 0x34
push edx
add eax, 6
push eax
push 0x621
mov ecx, esi
call fcn.00486fc2
mov ecx, eax
call fcn.00487145
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x94]
push 1
push 0x14
push 0x38
add ecx, 0x1d
push ecx
add edx, 6
push edx
push 0x620
mov ecx, esi
call fcn.00486fc2
mov ecx, eax
call fcn.00487145
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x94]
push 1
push 0x14
push 0x35
add eax, 5
push eax
add ecx, 7
push ecx
push 0x622
mov ecx, esi
call fcn.00486fc2
mov ecx, eax
call fcn.00487145
mov eax, dword [esi + 0x94]
mov edi, dword [esi + 0x8c]
mov edx, dword [esi + 0xa0]
add eax, 0x47
push 1
sub edi, eax
push 0x16
sub edi, 0xf
push edi
add edx, 0x1c
push edx
push eax
mov ecx, ebx
call fcn.00487145
mov eax, dword [esi + 0x6e0]
add edi, 0xfffffff1
push edi
push 0
push 0x417
push eax
call ebp
mov eax, dword [esi + 0x94]
mov edi, dword [esi + 0x8c]
mov ecx, dword [esi + 0xa0]
add eax, 0x47
push 1
sub edi, eax
push 0x16
add ecx, 0x33
sub edi, 0xf
push edi
push ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.00487145
mov ecx, dword [esi + 0x674]
add edi, 0xfffffff1
push edi
push 0
push 0x417
push ecx
call ebp
mov edx, dword [esi + 0x674]
push 0
push 0
push 0x418
push edx
call ebp
mov ecx, dword [esi + 0x6e0]
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xa0]
mov edx, dword [esi + 0x90]
mov ecx, dword [esi + 0x94]
sub edx, eax
push 1
sub edx, 0x54
push edx
mov edx, dword [esi + 0x8c]
sub edx, ecx
sub edx, 8
push edx
add eax, 0x4a
push eax
push ecx
lea ecx, [esi + 0x7f8]
call fcn.00487145
mov eax, dword [esi + 0x94]
mov ebx, dword [esi + 0x8c]
add eax, 0x45
sub ebx, eax
sub ebx, 0xf
call fcn.0047a7de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407ceb
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x80], 0
fld dword [ecx + 0xe0]
fmul qword [0x5344a0]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x60], 0x4002
call fcn.004a22d0
push 0x522cb7
lea edx, [esp + 0x18]
push 0x5232f0
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f20
mov edi, dword [esp + 0x20]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x407d68
push 0
lea ecx, [esp + 0x18]
call fcn.00404d70
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x620]
lea eax, [esp + 0x4c]
push eax
push 0
push 0x1201
push ecx
mov dword [esp + 0x64], edi
call ebp
mov eax, 0x2aaaaaab
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0xdc], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], eax
je 0x407e2f
add eax, 0xffffffff
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, 0xffffffff
push ecx
lea edx, [esp + 0x18]
push 0x522cb4
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f20
mov edi, dword [esp + 0x20]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x407dfe
push 0
lea ecx, [esp + 0x18]
call fcn.00404d70
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x620]
lea eax, [esp + 0x4c]
push eax
push ecx
push 0x1201
push edx
mov dword [esp + 0x64], edi
call ebp
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 0x19
mov dword [esp + 0x18], eax
jl 0x407dba
jmp 0x407f58
mov ecx, dword [esi + 0x90]
cmp ecx, 0x300
jne 0x407ec5
add eax, 0xffffffff
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, 0xffffffff
push ecx
lea edx, [esp + 0x18]
push 0x522cb4
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f20
mov edi, dword [esp + 0x20]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x407e94
push 0
lea ecx, [esp + 0x18]
call fcn.00404d70
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x620]
lea eax, [esp + 0x4c]
push eax
push ecx
push 0x1201
push edx
mov dword [esp + 0x64], edi
call ebp
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 0x19
mov dword [esp + 0x18], eax
jl 0x407e50
jmp 0x407f58
cmp ecx, 0x400
jne 0x407f58
mov ecx, 1
mov dword [esp + 0x18], ecx
jmp 0x407ee8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, 0x14
jle 0x407ef4
add eax, 0xffffffff
mov dword [esp + 0x50], eax
add ecx, 0xffffffff
push ecx
lea eax, [esp + 0x18]
push 0x522cb4
push eax
call fcn.00404f20
mov edi, dword [esp + 0x20]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x407f2c
push 0
lea ecx, [esp + 0x18]
call fcn.00404d70
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x620]
lea ecx, [esp + 0x4c]
push ecx
push edx
push 0x1201
push eax
mov dword [esp + 0x64], edi
call ebp
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 0x19
mov dword [esp + 0x18], eax
jl 0x407ee0
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
mov esi, 1
add ebx, edx
mov ecx, esi
and ecx, 1
cmp cl, 1
mov dword [esp + 0x50], ebx
je 0x407fba
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x18]
push 0x522cb4
push eax
call fcn.00404f20
mov edi, dword [esp + 0x20]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x407fb6
push 0
lea ecx, [esp + 0x18]
call fcn.00404d70
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54], edi
add esi, 1
cmp esi, 0x3d
jl 0x407f70
mov esi, dword [esp + 0x28]
push 0
mov ecx, esi
call fcn.004871bf
push 5
mov ecx, esi
call fcn.00487183
mov ecx, dword [esp + 0x20]
push 5
call fcn.00487183
add edi, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40800a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret