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

Disassembly:
test esi, esi
je 0x4456fd
lea ecx, [esp + 0x2c]
call fcn.0040a961
cmp esi, 1
je 0x44572e
cmp esi, 2
je 0x44580b
cmp esi, 3
jne 0x44599e
xor eax, eax
mov dword [esp + 0x18], 0x49cc34
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.00469106
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov ecx, ebx
call fcn.0040cfa0
xor ecx, ecx
mov dword [ebx + 0xc], 1
test esi, esi
setne cl
mov dword [ebx], ecx
jmp 0x40801f
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.00469106
mov esi, eax
test esi, esi
jne 0x44578a
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040cfa0
mov edx, dword [esp + 0x14]
mov dword [ebx + 0xc], 1
mov dword [ebx], esi
mov eax, dword [edx]
mov eax, dword [eax + 4]
add eax, edx
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
je 0x44576e
mov ecx, dword [ecx + 0x38]
mov dword [ecx + 0x14], 1
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
je 0x445781
mov ecx, dword [ecx + 0x38]
mov byte [ecx + 0x18], 0
jmp 0x408016
mov ecx, dword [ebp + 0xc]
call fcn.004063eb
mov ebx, eax
cmp esi, 2
jl 0x4457a3
mov edi, 1
lea eax, [esi - 1]
jmp 0x4457a7
xor edi, edi
mov eax, esi
push eax
push 1
push ebx
call fcn.00406a50
add esp, 0xc
mov dword [esp + 0x10], 0
cmp edi, esi
jae 0x445899
lea eax, [esp + 0x2c]
push eax
push edi
lea ecx, [esp + 0x4c]
call fcn.0046904e
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00406f88
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
push 1
push eax
push ebx
call fcn.004070b0
add esp, 0x10
lea ecx, [esp + 0x78]
call fcn.0040cfa0
inc dword [esp + 0x10]
inc edi
cmp edi, esi
jb 0x4457c3
jmp 0x445899
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.00469106
mov edi, eax
test edi, edi
jne 0x44583e
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov eax, dword [eax + 4]
add eax, edx
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
je 0x44576e
jmp 0x44576b
mov ecx, dword [ebp + 0xc]
call fcn.004063eb
push edi
mov ebx, eax
push 1
push ebx
call fcn.00406a50
add esp, 0xc
xor esi, esi
test edi, edi
jle 0x445899
lea eax, [esp + 0x2c]
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.0046904e
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00406f88
push esi
push 1
lea eax, [esp + 0x80]
push eax
push ebx
call fcn.004070b0
add esp, 0x10
lea ecx, [esp + 0x78]
call fcn.0040cfa0
inc esi
cmp esi, edi
jl 0x44585a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
inc eax
push 0
push eax
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call fcn.0040630c
jmp 0x408016
cmp esi, 4
jne 0x408016
mov dword [esp + 0x8c], 0x49cc34
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x18], 0x49cc38
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 1
push 1
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.0046909b
test eax, eax
je 0x445a58
cmp dword [esp + 0x94], 0
je 0x445a11
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00406fd0
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
call fcn.00467099
jmp 0x445a11
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x445a90
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov eax, dword [eax + 4]
add eax, edx
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
je 0x445a77
mov ecx, dword [ecx + 0x38]
mov dword [ecx + 0x14], 1
cmp byte [eax + 0xd], 0
mov ecx, dword [eax + 8]
je 0x445a8a
mov ecx, dword [ecx + 0x38]
mov byte [ecx + 0x18], 0
jmp 0x445ac4
mov ecx, dword [ebp + 0xc]
call fcn.004063eb
push edi
mov ebx, eax
push 1
push ebx
call fcn.00406a50
add esp, 0xc
xor esi, esi
test edi, edi
je 0x445ac4
mov eax, dword [esp + 0x1c]
push esi
push 1
push dword [eax + esi*4]
push ebx
call fcn.004070b0
inc esi
add esp, 0x10
cmp esi, edi
jb 0x445aac
lea ecx, [esp + 0x78]
call fcn.0040cfa0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x49cc38
call fcn.00466fcd
push dword [esp + 0x1c]
call fcn.0041fe14
add esp, 4
mov dword [esp + 0x8c], 0x49cc34
lea ecx, [esp + 0x8c]
call fcn.004067e0
push dword [esp + 0x90]
jmp 0x40800e