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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fb86
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4586b0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
call fcn.0040d60d
mov edi, eax
push 0x10
mov dword [esp + 0x28], edi
call fcn.0040c8dc
pop ecx
mov dword [esp + 0x2c], eax
xor esi, esi
mov dword [esp + 0x80], esi
cmp eax, esi
je 0x407720
mov ecx, eax
call fcn.0040d0c0
mov dword [esp + 0x14], eax
jmp 0x407724
mov dword [esp + 0x14], esi
or dword [esp + 0x80], 0xffffffff
mov ecx, dword [esp + 0x14]
push edi
call fcn.00407c32
mov ecx, dword [esp + 0x14]
lea eax, [ebx + 0x9c]
push eax
call fcn.00407c1b
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x10], 1
je 0x407762
mov eax, dword [ebx + 0x94]
push 0xcc0020
push esi
push eax
jmp 0x40777a
cmp dword [ebx + 0x90], esi
je 0x407790
mov eax, dword [ebx + 0x94]
push 0xcc0020
push esi
lea ecx, [eax + eax]
push ecx
push dword [esp + 0x20]
mov ecx, edi
push dword [ebx + 0x98]
push eax
push esi
push esi
call fcn.00407beb
jmp 0x4077c0
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
cmp edx, esi
jne 0x4077a8
xor edx, edx
jmp 0x4077ab
mov edx, dword [edx + 4]
push 0xcc0020
push esi
push esi
push edx
push eax
push ecx
push esi
push esi
push dword [edi + 4]
call dword [0x4430c0]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea esi, [ebx + 0xb0]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x407846
push 1
mov ecx, edi
call fcn.0040cf20
mov eax, dword [edi]
lea ecx, [ebx + 0xb8]
push ecx
mov ecx, edi
call dword [eax + 0x28]
push dword [ebx + 0xc0]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00407bbe
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x20]
call dword [0x4435a8]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov esi, dword [esi]
sub eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0xac]
cdq
sub eax, edx
mov edx, dword [esi - 0xc]
mov dword [esp + 0x18], edx
push dword [esp + 0x18]
mov edx, dword [edi]
push esi
push ecx
sar eax, 1
push eax
mov ecx, edi
call dword [edx + 0x5c]
lea esi, [ebx + 0x78]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
and dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
test eax, eax
jbe 0x407a52
jmp 0x40786c
mov esi, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x64]
call fcn.0040d6a3
xor eax, eax
inc eax
mov dword [esp + 0x80], eax
push eax
lea ecx, [esp + 0x64]
call fcn.0040cf20
push dword [esp + 0x10]
call fcn.00407b6a
push dword [eax + 0x14]
lea ecx, [esp + 0x64]
call fcn.0040d9c8
push dword [esp + 0x10]
call fcn.00407b6a
push dword [eax + 8]
lea ecx, [esp + 0x64]
call fcn.0040cf52
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x20]
call dword [0x4435a8]
push dword [esp + 0x10]
call fcn.00407b6a
cmp byte [eax + 0x2c], 0
je 0x40793d
lea esi, [esp + 0x30]
lea edi, [esp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.0040d39f
mov esi, dword [esp + 0x18]
push 0x21
pop edi
push dword [esp + 0x10]
call fcn.00407b6a
cmp byte [eax + 0x2d], 0
je 0x407904
push 0x25
pop edi
jmp 0x407914
push dword [esp + 0x10]
call fcn.00407b6a
mov eax, dword [eax + 4]
add dword [esp + 0x44], eax
push dword [esp + 0x10]
call fcn.00407b6a
add eax, 0x20
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push edi
lea edx, [esp + 0x44]
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x70]
call dword [eax + 0x68]
jmp 0x407a1c
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
sub ebx, dword [esp + 0x38]
sub edi, dword [esp + 0x34]
call fcn.00407b6a
push dword [esp + 0x10]
sub edi, dword [eax + 0x28]
call fcn.00407b6a
mov eax, dword [eax]
push ebx
push edi
push 0
push eax
lea eax, [esp + 0x60]
push eax
call dword [0x44358c]
push dword [esp + 0x10]
call fcn.00407b6a
add eax, 0x20
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0x410
lea edx, [esp + 0x54]
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x70]
call dword [eax + 0x68]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x20]
push dword [esp + 0x10]
sub ebx, dword [esp + 0x38]
sub edi, dword [esp + 0x34]
add esi, 0x78
mov dword [esp + 0x1c], eax
call fcn.00407b6a
mov esi, dword [esp + 0x20]
push dword [esp + 0x10]
sub edi, dword [eax + 0x28]
add esi, 0x78
call fcn.00407b6a
mov ecx, dword [eax]
mov eax, ebx
sub eax, dword [esp + 0x18]
push ebx
cdq
sub eax, edx
push edi
sar eax, 1
push eax
push ecx
lea eax, [esp + 0x60]
push eax
call dword [0x44358c]
push dword [esp + 0x10]
call fcn.00407b6a
add eax, 0x20
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0x10
lea edx, [esp + 0x54]
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x70]
call dword [eax + 0x68]
mov ebx, dword [esp + 0x20]
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x60]
call fcn.0040d6f7
lea ecx, [ebx + 0x78]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x38
mov dword [esp + 0x1c], ecx
cdq
pop ecx
idiv ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], eax
jb 0x407868
mov edi, dword [esp + 0x24]
push dword [esp + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
mov esi, dword [esp + 0x14]
push dword [esp + 0x2c]
mov ecx, esi
call fcn.00407c1b
test esi, esi
je 0x407a79
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4