Function at 0x405e00
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 0x405e2b
cmp dword [0x41c298], edi
je 0x405e2b
cmp dword [0x41c29c], edi
jne 0x405fba
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41c288]
push 0x26
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00402940
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405fb1
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403940
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov ebp, dword [esp + 0x18]
je 0x405e75
cmp ebp, 1
jle 0x405e75
mov ecx, dword [esi + 4]
jmp 0x405e77
xor ecx, ecx
cmp esi, edi
je 0x405e83
cmp ebp, edi
jle 0x405e83
mov eax, dword [esi]
jmp 0x405e85
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 0x405eab
cmp ebp, 2
jle 0x405eab
mov ecx, dword [esi + 8]
jmp 0x405ead
xor ecx, ecx
test esi, esi
je 0x405eb9
test ebp, ebp
jle 0x405eb9
mov eax, dword [esi]
jmp 0x405ebb
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41c298], eax
je 0x405ed5
cmp ebp, 3
jle 0x405ed5
mov ecx, dword [esi + 0xc]
jmp 0x405ed7
xor ecx, ecx
test esi, esi
je 0x405ee3
test ebp, ebp
jle 0x405ee3
mov eax, dword [esi]
jmp 0x405ee5
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41c29c], eax
je 0x405eff
cmp ebp, 5
jle 0x405eff
mov ecx, dword [esi + 0x14]
jmp 0x405f01
xor ecx, ecx
test esi, esi
je 0x405f0f
cmp ebp, 4
jle 0x405f0f
mov eax, dword [esi + 0x10]
jmp 0x405f11
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41c2a0], eax
je 0x405f2b
cmp ebp, 6
jle 0x405f2b
mov eax, dword [esi + 0x18]
jmp 0x405f2d
xor eax, eax
test esi, esi
je 0x405f3b
cmp ebp, 4
jle 0x405f3b
mov esi, dword [esi + 0x10]
jmp 0x405f3d
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.00407a20
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.00403a00
cmp dword [0x41c294], 0
je 0x4060be
cmp dword [0x41c298], 0
je 0x4060be
cmp dword [0x41c29c], 0
je 0x4060be
lea ecx, [esp + 0x10]
push ecx
mov dword [0x41c23c], 0x7fffffff
call fcn.00405cf0
add esp, 4
test eax, eax
jl 0x4060be
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 0x4060aa
cmp word [esi], 8
jb 0x406076
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 0x406043
cmp ax, 0x5a
ja 0x406043
add eax, 0x20
movzx edx, ax
movzx eax, word [ecx]
cmp ax, 0x41
jb 0x406058
cmp ax, 0x5a
ja 0x406058
add eax, 0x20
add ecx, 2
sub ebx, 1
movzx eax, ax
je 0x406068
cmp dx, ax
je 0x406030
movzx eax, ax
movzx ecx, dx
sub ecx, eax
je 0x40608d
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 0x406017
jmp 0x4060aa
call fcn.00405db0
test al, al
je 0x4060a1
movzx eax, byte [esi + 0x52]
mov dword [0x41c23c], eax
jmp 0x4060aa
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