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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebp, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov eax, dword [ebp + 0x1c]
cmp eax, 0xfffffff
ja 0x408324
shl eax, 4
mov dword [esp], eax
call fcn.00413410
mov esi, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
shl eax, 3
add esi, eax
mov dword [esp + 0x24], esi
add esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, 0x15555555
ja 0x408324
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp], eax
call fcn.00413410
mov dword [esp + 0x38], eax
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00413410
mov edx, dword [ebp + 0x1c]
test ebx, ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x54]
setne byte [ebp + 0x46c]
call fcn.00404f40
mov dword [esp + 4], 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004135f0
mov dword [ebp + 0x468], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408317
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0
nop
lea esi, [esi]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
lea edi, [eax*4]
add ecx, edi
mov edx, dword [ecx]
lea eax, [edx - 0x100]
cmp eax, 0xd
ja case.0x407ee1.257
jmp dword [eax*4 + 0x42b0a4]
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x58]
mov eax, dword [ebx - 8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [ebx - 4]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
je 0x408310
mov dword [esp + 0x28], edi
mov edi, edx
nop
mov eax, dword [esi + ebx*8]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x468]
lea ecx, [eax + edx*4]
lea eax, [esp + 0x54]
lea edx, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [ecx + 4]
mov dword [esp], eax
lea eax, [esp + 0x48]
call fcn.00406df0
mov eax, dword [esi + ebx*8]
add ebx, 1
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x468]
lea ecx, [eax + edx*4]
lea eax, [esp + 0x54]
mov edx, edi
call fcn.00406fc0
cmp ebx, dword [esp + 0x20]
jne 0x407f20
mov edi, dword [esp + 0x28]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + edi]
cmp eax, 0x10a
je 0x407f86
mov eax, dword [esp + 0x1c]
mov byte [eax - 0xc], 1
add dword [esp + 0x18], 1
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x18]
cmp eax, edi
ja 0x407ec0
test eax, eax
je 0x408026
xor ebx, ebx
mov edi, dword [esp + 0x2c]
jmp 0x407fc0
cmp eax, 0x101
je 0x407fe2
add ebx, 1
cmp dword [ebp + 0x10], ebx
jbe 0x408026
nop
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
lea edx, [eax - 0x100]
cmp edx, 0x12
lea edx, [eax - 0x110]
seta cl
cmp edx, 1
setbe dl
or cl, dl
je 0x407fb0
lea esi, [ebx + ebx*2]
mov eax, dword [ebp + 0x468]
lea ecx, [esp + 0x54]
add ebx, 1
shl esi, 2
add eax, esi
lea edx, [eax + 4]
call fcn.00406fc0
lea eax, [esp + 0x54]
mov ecx, edi
mov edx, ebp
call fcn.00405400
add esi, dword [ebp + 0x468]
lea edx, [esp + 0x58]
lea eax, [esp + 0x54]
mov ecx, esi
call fcn.00406fc0
cmp dword [ebp + 0x10], ebx
ja 0x407fc0
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x58], 0
mov ebx, dword [esp + 0x24]
mov edi, dword [eax - 8]
test edi, edi
je 0x408058
nop
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x54]
add esi, 1
add ebx, 8
call fcn.004051a0
cmp esi, edi
jne 0x408040
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x54]
mov edx, ebp
call fcn.00405400
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
call fcn.00405610
test al, 4
mov ebx, eax
jne 0x4082e0
mov ecx, ebx
lea edx, [esp + 0x54]
mov eax, ebp
xor ecx, 7
call fcn.00407040
and ebx, 2
mov dword [ebp + 0x478], eax
mov dword [ebp + 0x490], eax
jne 0x4082f5
mov dword [ebp + 0x48c], eax
add eax, 1
mov dword [ebp + 0x478], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004264dc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004264dc
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
mov dword [eax + 8], 0
add eax, 0xc
mov dword [eax - 8], 0
mov dword [esp + 0x1c], eax
jmp 0x407f86
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 8]
add dword [edi - 0x14], eax
mov eax, dword [edi - 4]
add dword [edi - 0x10], eax
movzx eax, byte [edi - 0xc]
or byte [edi - 0x18], al
sub edi, 0xc
mov dword [esp + 0x1c], edi
jmp 0x407f86
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov edi, dword [eax - 8]
mov dword [esp + 0x48], ebx
mov ebx, eax
mov eax, dword [eax - 4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], edi
mov edi, dword [ebx - 0x10]
mov dword [esp + 0x28], eax
shl eax, 3
test edi, edi
mov dword [esp + 0x20], edi
je 0x4081c4
lea edi, [esp + 0x58]
mov dword [esp + 0x30], esi
xor ebx, ebx
mov edx, edi
lea edi, [esi + eax]
mov esi, edx
mov eax, dword [edi + ebx*8]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x468]
lea ecx, [eax + edx*4]
lea eax, [esp + 0x54]
lea edx, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [ecx + 4]
mov dword [esp], eax
lea eax, [esp + 0x48]
call fcn.00406df0
mov eax, dword [edi + ebx*8]
add ebx, 1
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x468]
lea ecx, [eax + edx*4]
lea eax, [esp + 0x54]
mov edx, esi
call fcn.00406fc0
cmp ebx, dword [esp + 0x20]
jne 0x408173
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
movzx ebx, byte [eax - 0x18]
test bl, bl
je 0x4082c0
mov edi, dword [esp + 0x34]
add dword [eax - 0x14], edi
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax - 0xc]
test cl, cl
je 0x408275
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov dword [edi - 0x10], eax
mov eax, dword [esp + 0x1c]
and ecx, ebx
mov byte [eax - 0x18], cl
sub eax, 0xc
mov dword [esp + 0x1c], eax
jmp 0x407f86
mov eax, dword [esp + 0x1c]
cmp edx, 0x101
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x468]
lea ebx, [esi - 8]
mov dword [eax + 8], 1
mov dword [eax + 4], 1
sete byte [eax]
add eax, 0xc
mov dword [esi - 8], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [eax - 8], ecx
lea edi, [eax - 8]
mov dword [esi - 4], 0x777
mov dword [eax - 4], 0x777
lea eax, [ecx + ecx*2]
mov esi, ebx
lea eax, [edx + eax*4]
mov edx, 1
call fcn.00404f40
mov dword [esp + 0x24], edi
jmp 0x407f86
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, edi
lea edx, [esi + edx*8]
sub eax, 1
test edi, edi
je 0x4082aa
mov dword [esp + 0x20], ebp
lea esi, [esi]
mov edi, dword [esi + eax*8]
mov ebp, dword [esi + eax*8 + 4]
mov dword [edx + eax*8], edi
mov dword [edx + eax*8 + 4], ebp
sub eax, 1
cmp eax, 0xffffffff
jne 0x408290
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov esi, edx
mov dword [eax - 0x10], edi
jmp 0x4081fa
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov eax, dword [eax - 8]
lea eax, [edi + eax*8]
mov dword [esp + 0x24], eax
jmp 0x4081db
lea edx, [esp + 0x54]
mov ecx, 4
mov eax, ebp
call fcn.00407040
jmp 0x40807e
lea edx, [esp + 0x54]
mov ecx, 2
mov eax, ebp
call fcn.00407040
mov dword [ebp + 0x48c], eax
jmp 0x4080a9
mov eax, dword [ecx]
jmp 0x407f77
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
jmp 0x408026
call fcn.00413690
lea esi, [esi]