Function at 0x405ef0
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 [0x41d298], edi
je 0x405f1b
cmp dword [0x41d29c], edi
je 0x405f1b
cmp dword [0x41d2a0], edi
jne 0x4060aa
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41d28c]
push 0x26
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00402950
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4060a1
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403a10
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov ebp, dword [esp + 0x18]
je 0x405f65
cmp ebp, 1
jle 0x405f65
mov ecx, dword [esi + 4]
jmp 0x405f67
xor ecx, ecx
cmp esi, edi
je 0x405f73
cmp ebp, edi
jle 0x405f73
mov eax, dword [esi]
jmp 0x405f75
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 [0x41d298], eax
je 0x405f9b
cmp ebp, 2
jle 0x405f9b
mov ecx, dword [esi + 8]
jmp 0x405f9d
xor ecx, ecx
test esi, esi
je 0x405fa9
test ebp, ebp
jle 0x405fa9
mov eax, dword [esi]
jmp 0x405fab
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41d29c], eax
je 0x405fc5
cmp ebp, 3
jle 0x405fc5
mov ecx, dword [esi + 0xc]
jmp 0x405fc7
xor ecx, ecx
test esi, esi
je 0x405fd3
test ebp, ebp
jle 0x405fd3
mov eax, dword [esi]
jmp 0x405fd5
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41d2a0], eax
je 0x405fef
cmp ebp, 5
jle 0x405fef
mov ecx, dword [esi + 0x14]
jmp 0x405ff1
xor ecx, ecx
test esi, esi
je 0x405fff
cmp ebp, 4
jle 0x405fff
mov eax, dword [esi + 0x10]
jmp 0x406001
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41d2a4], eax
je 0x40601b
cmp ebp, 6
jle 0x40601b
mov eax, dword [esi + 0x18]
jmp 0x40601d
xor eax, eax
test esi, esi
je 0x40602b
cmp ebp, 4
jle 0x40602b
mov esi, dword [esi + 0x10]
jmp 0x40602d
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 [0x41d2a4], edx
mov dword [0x41d2a8], eax
sete dl
xor eax, eax
cmp dword [0x41d2a0], eax
lea ecx, [ecx + ecx + 0x2b]
push ecx
sete al
xor ecx, ecx
cmp dword [0x41d29c], ecx
lea edx, [edx + edx + 0x2b]
push edx
sete cl
xor edx, edx
cmp dword [0x41d298], 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.00407b40
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.00403ad0
cmp dword [0x41d298], 0
je 0x4061ae
cmp dword [0x41d29c], 0
je 0x4061ae
cmp dword [0x41d2a0], 0
je 0x4061ae
lea ecx, [esp + 0x10]
push ecx
mov dword [0x41d23c], 0x7fffffff
call fcn.00405de0
add esp, 4
test eax, eax
jl 0x4061ae
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 0x40619a
cmp word [esi], 8
jb 0x406166
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 0x406133
cmp ax, 0x5a
ja 0x406133
add eax, 0x20
movzx edx, ax
movzx eax, word [ecx]
cmp ax, 0x41
jb 0x406148
cmp ax, 0x5a
ja 0x406148
add eax, 0x20
add ecx, 2
sub ebx, 1
movzx eax, ax
je 0x406158
cmp dx, ax
je 0x406120
movzx eax, ax
movzx ecx, dx
sub ecx, eax
je 0x40617d
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 0x406107
jmp 0x40619a
call fcn.00405ea0
test al, al
je 0x406191
movzx eax, byte [esi + 0x52]
mov dword [0x41d23c], eax
jmp 0x40619a
add ebp, 2
mov dword [0x41d23c], 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