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

Disassembly:
push 0xffffffffffffffff
push 0x4be098
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ef6a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5076b8]
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 0x40797f
push eax
call fcn.00475b2b
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.0047c3ca
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.0047c3ca
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.0048311e
mov ecx, eax
call fcn.004832a1
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.0048311e
mov ecx, eax
call fcn.004832a1
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.0048311e
mov ecx, eax
call fcn.004832a1
mov eax, dword [esi + 0x94]
mov edi, dword [esi + 0x8c]
mov edx, dword [esi + 0xa0]
add eax, 0x45
push 1
sub edi, eax
push 0x16
sub edi, 0xf
push edi
add edx, 0x1c
push edx
push eax
mov ecx, ebx
call fcn.004832a1
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, 0x45
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.004832a1
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.004832a1
mov eax, dword [esi + 0x94]
mov ebx, dword [esi + 0x8c]
add eax, 0x45
sub ebx, eax
sub ebx, 0xf
call fcn.004768e7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407b6b
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 [0x4e0fe0]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x60], 0x4002
call fcn.0049e370
push 0x4cf8e7
lea edx, [esp + 0x18]
push 0x4cfed8
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f40
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 0x407be8
push 0
lea ecx, [esp + 0x18]
call fcn.00404d90
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 0x407caf
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 0x4cf8e4
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f40
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 0x407c7e
push 0
lea ecx, [esp + 0x18]
call fcn.00404d90
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 0x407c3a
jmp 0x407dd8
mov ecx, dword [esi + 0x90]
cmp ecx, 0x300
jne 0x407d45
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 0x4cf8e4
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f40
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 0x407d14
push 0
lea ecx, [esp + 0x18]
call fcn.00404d90
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 0x407cd0
jmp 0x407dd8
cmp ecx, 0x400
jne 0x407dd8
mov ecx, 1
mov dword [esp + 0x18], ecx
jmp 0x407d68
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, 0x14
jle 0x407d74
add eax, 0xffffffff
mov dword [esp + 0x50], eax
add ecx, 0xffffffff
push ecx
lea eax, [esp + 0x18]
push 0x4cf8e4
push eax
call fcn.00404f40
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 0x407dac
push 0
lea ecx, [esp + 0x18]
call fcn.00404d90
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 0x407d60
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 0x407e3a
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x18]
push 0x4cf8e4
push eax
call fcn.00404f40
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 0x407e36
push 0
lea ecx, [esp + 0x18]
call fcn.00404d90
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54], edi
add esi, 1
cmp esi, 0x3d
jl 0x407df0
mov esi, dword [esp + 0x28]
push 0
mov ecx, esi
call fcn.0048331b
push 5
mov ecx, esi
call fcn.004832df
mov ecx, dword [esp + 0x20]
push 5
call fcn.004832df
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 0x407e8a
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