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

Disassembly:
push 0xffffffffffffffff
push 0x56e188
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b16b0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5d02c0]
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 0x407c1f
push eax
call fcn.0047b546
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.00481d56
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.00481d56
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.00488aad
mov ecx, eax
call fcn.00488c30
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.00488aad
mov ecx, eax
call fcn.00488c30
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.00488aad
mov ecx, eax
call fcn.00488c30
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.00488c30
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.00488c30
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.00488c30
mov eax, dword [esi + 0x94]
mov ebx, dword [esi + 0x8c]
add eax, 0x45
sub ebx, eax
sub ebx, 0xf
call fcn.0047c271
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407e0b
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 [0x5a3938]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x60], 0x4002
call fcn.004a3ee0
push 0x592027
lea edx, [esp + 0x18]
push 0x59264c
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f50
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 0x407e88
push 0
lea ecx, [esp + 0x18]
call fcn.00404da0
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 0x407f4f
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 0x592024
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f50
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 0x407f1e
push 0
lea ecx, [esp + 0x18]
call fcn.00404da0
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 0x407eda
jmp 0x408078
mov ecx, dword [esi + 0x90]
cmp ecx, 0x300
jne 0x407fe5
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 0x592024
push edx
mov dword [esp + 0x5c], eax
call fcn.00404f50
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 0x407fb4
push 0
lea ecx, [esp + 0x18]
call fcn.00404da0
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 0x407f70
jmp 0x408078
cmp ecx, 0x400
jne 0x408078
mov ecx, 1
mov dword [esp + 0x18], ecx
jmp 0x408008
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, 0x14
jle 0x408014
add eax, 0xffffffff
mov dword [esp + 0x50], eax
add ecx, 0xffffffff
push ecx
lea eax, [esp + 0x18]
push 0x592024
push eax
call fcn.00404f50
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 0x40804c
push 0
lea ecx, [esp + 0x18]
call fcn.00404da0
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 0x408000
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 0x4080da
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x18]
push 0x592024
push eax
call fcn.00404f50
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 0x4080d6
push 0
lea ecx, [esp + 0x18]
call fcn.00404da0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54], edi
add esi, 1
cmp esi, 0x3d
jl 0x408090
mov esi, dword [esp + 0x28]
push 0
mov ecx, esi
call fcn.00488caa
push 5
mov ecx, esi
call fcn.00488c6e
mov ecx, dword [esp + 0x20]
push 5
call fcn.00488c6e
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 0x40812a
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