Function at 0x404980
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 0x4049ab
cmp dword [0x41b290], edi
je 0x4049ab
cmp dword [0x41b294], edi
jne 0x404b3a
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41b280]
push 0x26
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00402940
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x404b31
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov ebp, dword [esp + 0x18]
je 0x4049f5
cmp ebp, 1
jle 0x4049f5
mov ecx, dword [esi + 4]
jmp 0x4049f7
xor ecx, ecx
cmp esi, edi
je 0x404a03
cmp ebp, edi
jle 0x404a03
mov eax, dword [esi]
jmp 0x404a05
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 0x404a2b
cmp ebp, 2
jle 0x404a2b
mov ecx, dword [esi + 8]
jmp 0x404a2d
xor ecx, ecx
test esi, esi
je 0x404a39
test ebp, ebp
jle 0x404a39
mov eax, dword [esi]
jmp 0x404a3b
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41b290], eax
je 0x404a55
cmp ebp, 3
jle 0x404a55
mov ecx, dword [esi + 0xc]
jmp 0x404a57
xor ecx, ecx
test esi, esi
je 0x404a63
test ebp, ebp
jle 0x404a63
mov eax, dword [esi]
jmp 0x404a65
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41b294], eax
je 0x404a7f
cmp ebp, 5
jle 0x404a7f
mov ecx, dword [esi + 0x14]
jmp 0x404a81
xor ecx, ecx
test esi, esi
je 0x404a8f
cmp ebp, 4
jle 0x404a8f
mov eax, dword [esi + 0x10]
jmp 0x404a91
xor eax, eax
push ecx
push eax
call edi
push eax
call ebx
test esi, esi
mov dword [0x41b298], eax
je 0x404aab
cmp ebp, 6
jle 0x404aab
mov eax, dword [esi + 0x18]
jmp 0x404aad
xor eax, eax
test esi, esi
je 0x404abb
cmp ebp, 4
jle 0x404abb
mov esi, dword [esi + 0x10]
jmp 0x404abd
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.004065c0
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.00403150
cmp dword [0x41b28c], 0
je 0x404c3e
cmp dword [0x41b290], 0
je 0x404c3e
cmp dword [0x41b294], 0
je 0x404c3e
lea ecx, [esp + 0x10]
push ecx
mov dword [0x41b230], 0x7fffffff
call fcn.00404870
add esp, 4
test eax, eax
jl 0x404c3e
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 0x404c2a
cmp word [esi], 8
jb 0x404bf6
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 0x404bc3
cmp ax, 0x5a
ja 0x404bc3
add eax, 0x20
movzx edx, ax
movzx eax, word [ecx]
cmp ax, 0x41
jb 0x404bd8
cmp ax, 0x5a
ja 0x404bd8
add eax, 0x20
add ecx, 2
sub ebx, 1
movzx eax, ax
je 0x404be8
cmp dx, ax
je 0x404bb0
movzx eax, ax
movzx ecx, dx
sub ecx, eax
je 0x404c0d
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 0x404b97
jmp 0x404c2a
call fcn.00404930
test al, al
je 0x404c21
movzx eax, byte [esi + 0x52]
mov dword [0x41b230], eax
jmp 0x404c2a
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