Function at 0x405e10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [0x41c294], edi
je 0x405e3b
cmp dword [0x41c298], edi
je 0x405e3b
cmp dword [0x41c29c], edi
jne 0x405fca
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41c288]
push 0x26
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00402950
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405fc1
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403950
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov ebp, dword [esp + 0x18]
je 0x405e85
cmp ebp, 1
jle 0x405e85
mov ecx, dword [esi + 4]
jmp 0x405e87
xor ecx, ecx
cmp esi, edi
je 0x405e93
cmp ebp, edi
jle 0x405e93
mov eax, dword [esi]
jmp 0x405e95
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ecx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test esi, esi
mov dword [0x41c294], eax
je 0x405ebb
cmp ebp, 2
jle 0x405ebb
mov ecx, dword [esi + 8]
jmp 0x405ebd
xor ecx, ecx
test esi, esi
je 0x405ec9
test ebp, ebp
jle 0x405ec9
mov eax, dword [esi]
jmp 0x405ecb
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41c298], eax
je 0x405ee5
cmp ebp, 3
jle 0x405ee5
mov ecx, dword [esi + 0xc]
jmp 0x405ee7
xor ecx, ecx
test esi, esi
je 0x405ef3
test ebp, ebp
jle 0x405ef3
mov eax, dword [esi]
jmp 0x405ef5
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41c29c], eax
je 0x405f0f
cmp ebp, 5
jle 0x405f0f
mov ecx, dword [esi + 0x14]
jmp 0x405f11
xor ecx, ecx
test esi, esi
je 0x405f1f
cmp ebp, 4
jle 0x405f1f
mov eax, dword [esi + 0x10]
jmp 0x405f21
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41c2a0], eax
je 0x405f3b
cmp ebp, 6
jle 0x405f3b
mov eax, dword [esi + 0x18]
jmp 0x405f3d
xor eax, eax
test esi, esi
je 0x405f4b
cmp ebp, 4
jle 0x405f4b
mov esi, dword [esi + 0x10]
jmp 0x405f4d
xor esi, esi
push eax
push esi
call edi
push eax
call ebx
xor ecx, ecx
test eax, eax
sete cl
xor edx, edx
cmp dword [0x41c2a0], edx
mov dword [0x41c2a4], eax
sete dl
xor eax, eax
cmp dword [0x41c29c], eax
lea ecx, [ecx + ecx + 0x2b]
push ecx
sete al
xor ecx, ecx
cmp dword [0x41c298], ecx
lea edx, [edx + edx + 0x2b]
push edx
sete cl
xor edx, edx
cmp dword [0x41c294], edx
lea eax, [eax + eax + 0x2b]
sete dl
push eax
lea ecx, [ecx + ecx + 0x2b]
push ecx
lea edx, [edx + edx + 0x2b]
push edx
call fcn.00407a30
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea esi, [esp + 0x18]
call fcn.00403a10
cmp dword [0x41c294], 0
je 0x4060ce
cmp dword [0x41c298], 0
je 0x4060ce
cmp dword [0x41c29c], 0
je 0x4060ce
lea ecx, [esp + 0x10]
push ecx
mov dword [0x41c23c], 0x7fffffff
call fcn.00405d00
add esp, 4
test eax, eax
jl 0x4060ce
mov eax, dword [esp + 0x10]
lea esi, [eax + 4]
mov eax, dword [eax]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x4060ba
cmp word [esi], 8
jb 0x406086
mov edi, dword [esi + 4]
mov ecx, str.File
mov ebx, 4
sub edi, ecx
lea esp, [esp]
movzx eax, word [edi + ecx]
cmp ax, 0x41
jb 0x406053
cmp ax, 0x5a
ja 0x406053
add eax, 0x20
movzx edx, ax
movzx eax, word [ecx]
cmp ax, 0x41
jb 0x406068
cmp ax, 0x5a
ja 0x406068
add eax, 0x20
add ecx, 2
sub ebx, 1
movzx eax, ax
je 0x406078
cmp dx, ax
je 0x406040
movzx eax, ax
movzx ecx, dx
sub ecx, eax
je 0x40609d
mov eax, dword [esp + 0x14]
movzx edx, word [esi + 2]
add edx, 3
and edx, 0xfffffffc
add ebp, 1
cmp ebp, eax
lea esi, [esi + edx + 0x60]
jb 0x406027
jmp 0x4060ba
call fcn.00405dc0
test al, al
je 0x4060b1
movzx eax, byte [esi + 0x52]
mov dword [0x41c23c], eax
jmp 0x4060ba
add ebp, 2
mov dword [0x41c23c], ebp
mov ecx, dword [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret