Function at 0x404990
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 [0x41b28c], edi
je 0x4049bb
cmp dword [0x41b290], edi
je 0x4049bb
cmp dword [0x41b294], edi
jne 0x404b4a
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41b280]
push 0x26
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00402950
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x404b41
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004030a0
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov ebp, dword [esp + 0x18]
je 0x404a05
cmp ebp, 1
jle 0x404a05
mov ecx, dword [esi + 4]
jmp 0x404a07
xor ecx, ecx
cmp esi, edi
je 0x404a13
cmp ebp, edi
jle 0x404a13
mov eax, dword [esi]
jmp 0x404a15
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 [0x41b28c], eax
je 0x404a3b
cmp ebp, 2
jle 0x404a3b
mov ecx, dword [esi + 8]
jmp 0x404a3d
xor ecx, ecx
test esi, esi
je 0x404a49
test ebp, ebp
jle 0x404a49
mov eax, dword [esi]
jmp 0x404a4b
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41b290], eax
je 0x404a65
cmp ebp, 3
jle 0x404a65
mov ecx, dword [esi + 0xc]
jmp 0x404a67
xor ecx, ecx
test esi, esi
je 0x404a73
test ebp, ebp
jle 0x404a73
mov eax, dword [esi]
jmp 0x404a75
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41b294], eax
je 0x404a8f
cmp ebp, 5
jle 0x404a8f
mov ecx, dword [esi + 0x14]
jmp 0x404a91
xor ecx, ecx
test esi, esi
je 0x404a9f
cmp ebp, 4
jle 0x404a9f
mov eax, dword [esi + 0x10]
jmp 0x404aa1
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41b298], eax
je 0x404abb
cmp ebp, 6
jle 0x404abb
mov eax, dword [esi + 0x18]
jmp 0x404abd
xor eax, eax
test esi, esi
je 0x404acb
cmp ebp, 4
jle 0x404acb
mov esi, dword [esi + 0x10]
jmp 0x404acd
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 [0x41b298], edx
mov dword [0x41b29c], eax
sete dl
xor eax, eax
cmp dword [0x41b294], eax
lea ecx, [ecx + ecx + 0x2b]
push ecx
sete al
xor ecx, ecx
cmp dword [0x41b290], ecx
lea edx, [edx + edx + 0x2b]
push edx
sete cl
xor edx, edx
cmp dword [0x41b28c], 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.004065d0
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.00403160
cmp dword [0x41b28c], 0
je 0x404c4e
cmp dword [0x41b290], 0
je 0x404c4e
cmp dword [0x41b294], 0
je 0x404c4e
lea ecx, [esp + 0x10]
push ecx
mov dword [0x41b230], 0x7fffffff
call fcn.00404880
add esp, 4
test eax, eax
jl 0x404c4e
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 0x404c3a
cmp word [esi], 8
jb 0x404c06
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 0x404bd3
cmp ax, 0x5a
ja 0x404bd3
add eax, 0x20
movzx edx, ax
movzx eax, word [ecx]
cmp ax, 0x41
jb 0x404be8
cmp ax, 0x5a
ja 0x404be8
add eax, 0x20
add ecx, 2
sub ebx, 1
movzx eax, ax
je 0x404bf8
cmp dx, ax
je 0x404bc0
movzx eax, ax
movzx ecx, dx
sub ecx, eax
je 0x404c1d
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 0x404ba7
jmp 0x404c3a
call fcn.00404940
test al, al
je 0x404c31
movzx eax, byte [esi + 0x52]
mov dword [0x41b230], eax
jmp 0x404c3a
add ebp, 2
mov dword [0x41b230], 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