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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
mov edx, dword [0x43e114]
push edi
mov eax, dword [esi]
mov dword [esp + 0x34], 0x280
mov dword [esp + 0x38], 0x1e0
lea ecx, [eax + eax*2]
shl ecx, 5
sub ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
lea ebp, [edx + ecx*4]
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x14]
mov dword [esp + 0x30], ecx
mov ebx, dword [ebp + 0x10c]
lea edi, [ebp + 0x108]
push edx
mov ecx, edi
call fcn.0040bd90
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00413e90
mov eax, dword [eax]
mov ebx, dword [edi + 4]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x40], eax
jne 0x407a14
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040bd90
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push ebx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00413e90
mov eax, dword [eax]
mov ecx, dword [edi + 4]
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0x40], eax
jne 0x407a14
lea ecx, [esp + 0x14]
xor eax, eax
push ecx
mov ecx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
or ebx, 0xffffffff
call fcn.0040bd90
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 4]
cmp eax, ecx
mov dword [esp + 0x40], eax
je 0x407a04
lea edx, [esp + 0x2c]
add eax, 0xc
push edx
push eax
call fcn.00407dd0
add esp, 8
test ebx, ebx
jl 0x4079c3
cmp eax, ebx
jge 0x4079d7
mov ecx, dword [esp + 0x40]
mov ebx, eax
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.00412ff0
mov eax, dword [esp + 0x40]
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x4079aa
test ebx, ebx
jl 0x407a04
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
jmp 0x407a1e
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.0040bd90
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 8], ecx
lea ecx, [esp + 0x1c]
lea edi, [ebp + 0x118]
push ecx
mov ecx, edi
mov dword [esp + 0x24], eax
mov dword [esi + 0x10], eax
call fcn.00409be0
mov edx, dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov dword [esp + 0x18], edx
call fcn.00409be0
mov ebx, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00409be0
mov edx, dword [eax + 4]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x40], eax
je 0x407a84
mov ecx, dword [eax + 0xc]
mov edx, dword [esi + 0x34]
cmp ecx, edx
je 0x407a84
lea ecx, [esp + 0x40]
call fcn.0040d580
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x407a69
cmp eax, dword [esp + 0x14]
je 0x407a92
mov edx, dword [esi + 0x34]
mov dword [esi + 0x30], edx
jmp 0x407a99
mov dword [esi + 0x30], 0
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], ecx
push edx
lea ecx, [ebp + 0x128]
mov dword [esp + 0x30], eax
call fcn.00409f40
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00413f00
mov edx, eax
lea eax, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x24], edx
call fcn.00407750
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x4c]
mov dword [esi + 0x38], ecx
push edx
call fcn.00407750
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x54]
add esp, 0x1c
mov dword [esi + 0x40], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [ebp + 0x138]
mov dword [esp + 0x34], edx
call fcn.0040a380
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00413f00
mov edx, eax
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00407750
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x4c]
mov dword [esi + 0x48], ecx
push edx
call fcn.00407750
mov eax, dword [eax + 4]
add esp, 0x1c
lea ecx, [esp + 0x10]
lea edi, [ebp + 0x158]
push ecx
mov ecx, edi
mov dword [esi + 0x50], eax
call fcn.0040a870
mov edx, dword [eax + 4]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x18], edx
call fcn.0040a870
mov ebx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0040a870
mov edx, dword [eax + 4]
mov eax, dword [edx]
cmp eax, ebx
mov dword [esp + 0x40], eax
je 0x407ba1
mov ecx, dword [eax + 0xc]
mov edx, dword [esi + 0x5c]
cmp ecx, edx
je 0x407ba1
lea ecx, [esp + 0x40]
call fcn.0040d580
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x407b86
cmp eax, dword [esp + 0x14]
je 0x407baf
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x58], edx
jmp 0x407bd4
mov eax, dword [esi + 0x5c]
mov edi, 0xffff
cmp eax, edi
jne 0x407bcd
push esi
call fcn.00407c70
add esp, 4
test al, al
je 0x407bcd
mov dword [esi + 0x58], edi
jmp 0x407bd4
mov dword [esi + 0x58], 0
mov al, byte [ebp + 0x168]
test al, al
je 0x407be3
mov eax, dword [esi + 0x64]
jmp 0x407be5
xor eax, eax
mov dword [esi + 0x60], eax
mov cl, byte [ebp + 0x169]
test cl, cl
je 0x407c05
test eax, eax
je 0x407c05
mov al, byte [ebp + 0x16a]
test al, al
je 0x407c05
mov eax, dword [esi + 0x6c]
jmp 0x407c07
xor eax, eax
mov dword [esi + 0x68], eax
mov al, byte [ebp + 0x16a]
test al, al
je 0x407c19
mov eax, dword [esi + 0x74]
jmp 0x407c1b
xor eax, eax
mov dword [esi + 0x70], eax
mov al, byte [ebp + 0x16b]
test al, al
je 0x407c37
mov cl, byte [ebp + 0x16c]
test cl, cl
je 0x407c37
mov eax, dword [esi + 0x7c]
jmp 0x407c3c
and eax, 0xff
mov dword [esi + 0x78], eax
mov al, byte [ebp + 0x16d]
test al, al
je 0x407c5d
mov eax, dword [esi + 0x84]
pop edi
mov dword [esi + 0x80], eax
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
xor eax, eax
pop edi
mov dword [esi + 0x80], eax
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret