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

Disassembly:
push 0xffffffffffffffff
push 0x47ba03
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9188]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x34]
push eax
mov edi, esi
call fcn.00408490
mov ebp, dword [esp + 0xcc]
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xc0], 0
mov ecx, dword [esp + 0x3c]
mov edi, dword [ecx + 4]
lea eax, [ebp + 0x3c]
lea edi, [esp + edi + 0x3c]
call fcn.00408750
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x4c]
mov edi, dword [esp + eax + 0x54]
mov dword [esp + 0x1c], ecx
shr ecx, 8
and cl, 1
mov dword [esp + 0x28], edi
je 0x407a7e
test edi, edi
je 0x407a7e
mov bl, 1
jmp 0x407a80
xor bl, bl
mov ecx, dword [esp + 0xd0]
push 0
call dword [0x4836cc]
test bl, bl
jne 0x407b8c
test edi, edi
jle 0x407aad
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x3c]
mov dword [eax + 0x18], 0
mov ecx, dword [esp + 0xc8]
movzx edx, word [ecx]
push edx
lea ecx, [esp + 0x40]
call dword [0x4836fc]
mov eax, dword [esi + 0x14]
mov ebx, dword [eax]
xor edi, edi
test byte [ebp + 0x60], 2
je 0x407b23
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
sub eax, ebx
test eax, 0xfffffffe
je 0x407b0d
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call dword [0x4836ec]
cmp word [ebx], ax
je 0x407b23
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call dword [0x4836ec]
cmp word [ebx], ax
je 0x407b23
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + 4]
push 0x20
lea ecx, [esp + ecx + 0x40]
call dword [0x4836ec]
movzx edi, ax
mov edx, dword [esi + 0x24]
mov eax, dword [edx]
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx]
mov ecx, dword [ebp + 0x5c]
sar eax, 1
xor edx, edx
test di, di
setne dl
mov dword [esp + 0x24], eax
sub ecx, edx
cmp eax, ecx
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x24]
jb 0x407b50
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
movzx ecx, word [esp + edx + 0x6c]
mov edx, dword [ebp + 0x60]
mov eax, dword [eax]
shr edx, 2
and dl, 1
movzx edx, dl
push edx
mov edx, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x30]
push edx
push ecx
push eax
push ebx
mov ebx, dword [esp + 0xe8]
call fcn.004088d0
add esp, 0x18
jmp 0x407e5a
mov eax, dword [esp + 0xc8]
movzx ecx, word [eax]
push ecx
lea ecx, [esp + 0x40]
call dword [0x4836fc]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x14]
mov eax, dword [eax]
mov edi, dword [edx]
mov ebx, dword [esp + 0xcc]
mov ebp, eax
sub ebp, edi
sar ebp, 1
test byte [ebx + 0x60], 2
mov byte [esp + 0x1b], 0
je 0x407c03
mov ecx, edx
sub eax, dword [ecx]
test eax, 0xfffffffe
je 0x407bfe
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
push 0x2b
lea ecx, [esp + ecx + 0x40]
call dword [0x4836ec]
cmp word [edi], ax
je 0x407c03
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push 0x2d
lea ecx, [esp + ecx + 0x40]
call dword [0x4836ec]
cmp word [edi], ax
je 0x407c03
mov byte [esp + 0x1b], 1
mov eax, dword [esp + 0x28]
cmp ebp, eax
jne 0x407c2b
cmp eax, dword [ebx + 0x5c]
jg 0x407c2b
cmp byte [esp + 0x1b], 0
jne 0x407c2b
mov ecx, dword [esp + 0xd0]
push ebp
push edi
call dword [0x48378c]
jmp 0x407e5a
mov ecx, dword [esp + 0xd0]
push ebp
push edi
call dword [0x48378c]
call fcn.00408860
lea ecx, [esp + 0x74]
push ecx
mov edi, esi
call fcn.00408490
mov eax, dword [esp + 0xcc]
mov ebx, dword [esp + 0xd4]
mov byte [esp + 0xc0], 1
mov edx, dword [esp + 0x7c]
mov edi, dword [edx + 4]
lea edi, [esp + edi + 0x7c]
add eax, 0x3c
call fcn.00408750
cmp byte [esp + 0x1b], 0
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 4]
lea eax, [esp + eax + 0x7c]
mov dword [eax + 0x18], 0
je 0x407c9a
lea ecx, [esp + 0x7c]
push ecx
call fcn.004089c0
add esp, 4
mov edx, dword [esp + 0xc8]
movzx eax, word [edx]
push eax
lea ecx, [esp + 0x80]
call dword [0x4836fc]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [esi + 0x14]
sub eax, dword [edx]
test eax, 0xfffffffe
jne 0x407ce2
mov eax, dword [esp + 0xcc]
test byte [eax + 0x60], 2
je 0x407ce2
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x1f], 1
call fcn.004089c0
add esp, 4
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov edx, dword [esp + 0xcc]
mov edx, dword [edx + 0x5c]
sub eax, ecx
sar eax, 1
mov dword [esp + 0x20], eax
cmp eax, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x20]
jb 0x407d12
lea eax, [esp + 0x1c]
mov ebx, dword [eax]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x28], ebx
ja 0x407d32
push ebx
push ecx
mov ecx, dword [esp + 0xd8]
call dword [0x48378c]
jmp 0x407e02
mov al, byte [esp + 0x1b]
xor ecx, ecx
test al, al
setne cl
lea edx, [esp + 0x20]
add ebp, ecx
mov dword [esp + 0x1c], ebp
cmp ebx, ebp
jb 0x407d4f
lea edx, [esp + 0x1c]
mov ebp, dword [edx]
movzx eax, al
mov edi, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
cmp edi, ebp
jae 0x407ed1
sub eax, ecx
mov dword [esp + 0x1c], eax
add eax, eax
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0xd0]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [ebp + 0x14]
jbe 0x407d88
call dword [0x483988]
cmp dword [ebp + 0x18], 8
jb 0x407d93
mov eax, dword [ebp + 4]
jmp 0x407d96
lea eax, [ebp + 4]
mov edx, dword [esp + 0x24]
mov cx, word [edx + edi*2]
mov edx, dword [esp + 0x20]
cmp cx, word [eax + edx]
jne 0x407db8
inc dword [esp + 0x1c]
add dword [esp + 0x20], 2
inc edi
cmp edi, dword [esp + 0x30]
jb 0x407d72
mov eax, dword [esp + 0x2c]
cmp edi, ebx
jb 0x407dc2
mov edi, eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov ecx, ebp
call dword [0x48378c]
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 4]
movzx ecx, word [esp + edx + 0xac]
mov eax, dword [esp + 0x28]
push ecx
sub eax, ebx
push eax
mov ecx, ebp
call dword [0x483778]
mov eax, dword [esp + 0x24]
sub ebx, edi
lea ecx, [eax + edi*2]
push ebx
push ecx
mov ecx, ebp
call dword [0x4836c8]
mov byte [esp + 0xc0], 0
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
mov ecx, dword [0x48373c]
mov dword [esp + eax + 0x7c], ecx
mov edi, dword [esp + 0x78]
test edi, edi
je 0x407e4d
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x407e4d
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x407e4d
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
lea ecx, [esp + 0x80]
call dword [0x483740]
call fcn.00408860
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov edx, dword [0x48373c]
mov dword [esp + ecx + 0x3c], edx
mov esi, dword [esp + 0x38]
test esi, esi
je 0x407ead
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x407ead
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x407ead
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea ecx, [esp + 0x40]
call dword [0x483740]
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
mov ebp, dword [esp + 0xd0]
jmp 0x407dbc