Function at 0x471b10
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x471b9c
mov eax, dword [eax + 0x2c]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x471b9c
push esi
push 0x8000000
push 3
push esi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x471b9c
push edi
call fcn.0046e4fd
mov ebx, edx
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
jne 0x471b68
cmp ebx, eax
je 0x47209f
xor eax, eax
cmp eax, ebx
ja 0x47209f
jb 0x471b80
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x1c], eax
ja 0x47209f
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], esi
jne 0x471ba3
xor eax, eax
jmp 0x4720ac
or dword [ebp - 4], 0xffffffff
mov eax, 0x100000
sub eax, dword [0x4d9aac]
cmp ebx, esi
fldz
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
fstp qword [ebp - 0x58]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
ja 0x471bd9
cmp dword [ebp - 0x40], esi
jbe 0x47205a
call fcn.004712c4
test eax, eax
jne 0x472038
xor esi, esi
cmp dword [ebp - 0x3c], esi
ja 0x471bf7
mov eax, dword [ebp - 0x40]
cmp eax, 0x100000
jbe 0x471c09
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], 0x100000
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], esi
jmp 0x471c12
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
push dword [ebp - 0x10]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push 4
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x20], eax
je 0x47205a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
or ebx, 0xffffffff
cmp dword [ebp - 4], ebx
lea esi, [ecx + eax]
mov dword [ebp - 0xc], esi
jne 0x471e46
mov eax, dword [ebp + 0x10]
push 4
shr eax, 0x10
pop ecx
cmp ax, cx
jne 0x471c63
and dword [ebp - 4], 0
mov dword [ebp - 0x18], ecx
jmp 0x471dc8
cmp word [esi], 0xfeff
jne 0x471c7b
inc esi
mov dword [ebp - 4], 3
inc esi
mov dword [ebp - 0xc], esi
jmp 0x471dc8
mov edi, dword [0x4d58d0]
push 3
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x471c9a
add dword [ebp - 0xc], 3
mov dword [ebp - 4], 2
jmp 0x471dc8
movzx eax, ax
xor esi, esi
mov dword [ebp - 0x18], eax
cmp dword [0x4d9ab4], esi
jne 0x471cb2
cmp dword [0x4d0350], esi
je 0x471cea
push dword [ebp + 8]
call fcn.0046bde8
mov edi, eax
pop ecx
test edi, edi
je 0x471cea
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x4d4c24
push edi
call esi
test eax, eax
je 0x471d3c
cmp dword [0x4d9570], 0
je 0x471ce8
push 0x4d0520
push edi
call esi
test eax, eax
je 0x471d3c
xor esi, esi
cmp dword [ebp - 0x18], 0
jne 0x471d0c
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.004726ad
xor ebx, ebx
pop ecx
test eax, eax
sete bl
cmp eax, 2
pop ecx
jb 0x471d0c
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
cmp edi, 1
je 0x471d1e
cmp edi, 2
je 0x471d1e
cmp edi, 5
jne 0x471d4d
cmp ebx, 0xffffffff
jne 0x471d44
test esi, esi
jne 0x471d41
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0047266f
pop ecx
test eax, eax
pop ecx
jne 0x471d41
xor ebx, ebx
jmp 0x471d4d
push 1
pop esi
jmp 0x471d0c
push 1
pop ebx
test ebx, ebx
je 0x471d4d
xor edi, edi
mov dword [ebp - 0x18], edi
test edi, edi
mov dword [ebp - 4], edi
jne 0x471dc8
cmp ebx, 0xffffffff
jne 0x471d71
test esi, esi
jne 0x471d6e
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.0047266f
pop ecx
test eax, eax
pop ecx
je 0x471dc8
push 1
pop ebx
test ebx, ebx
je 0x471dc8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4e9e94]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x9c]
test eax, eax
jbe 0x471db6
push 0
push 0x100000
push 0
push eax
call fcn.004c5e60
cmp dword [ebp - 0x3c], edx
jb 0x471db6
ja 0x471daf
cmp dword [ebp - 0x40], eax
jbe 0x471db6
push 1
pop ecx
mov eax, ecx
jmp 0x471dbb
push 1
xor eax, eax
pop ecx
test byte [ebp + 0x10], 8
je 0x471dc5
test eax, eax
je 0x471dc8
mov dword [ebp - 8], ecx
xor eax, eax
cmp dword [ebp - 4], 3
sete al
test eax, eax
mov dword [ebp - 0x24], eax
je 0x471e03
mov eax, dword [ebp - 0x1c]
add eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
neg eax
sbb eax, eax
and al, 0xfe
inc eax
inc eax
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], eax
jae 0x471e3b
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x30]
neg esi
sbb esi, esi
and esi, 0xfffffffe
inc esi
jmp 0x471e36
push 1
pop esi
cmp dword [ebp - 4], esi
je 0x471e17
cmp dword [ebp - 4], 2
je 0x471e17
cmp dword [ebp - 4], 5
jne 0x471e3b
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 4], esi
setne al
inc eax
inc ecx
imul eax, ecx
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x14], eax
jne 0x471e3b
mov dword [ebp - 8], esi
jmp 0x471e3e
mov esi, dword [ebp - 8]
test esi, esi
jne 0x47203e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
add ecx, eax
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], ecx
je 0x471e60
test cl, 1
je 0x471e60
dec ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x20]
cdq
add eax, dword [ebp - 0x48]
adc edx, dword [ebp - 0x44]
xor esi, esi
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
je 0x471f79
mov ebx, ecx
mov dword [ebp - 0x30], esi
sub ebx, dword [ebp - 0xc]
cmp dword [ebp - 4], 1
jne 0x471eb5
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and byte [ebx + eax], 0
call dword [sym.imp.USER32.dll_OemToCharA]
jmp 0x471f3b
cmp dword [ebp - 4], 5
jne 0x471ed8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4e9e94]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb4]
jmp 0x471edd
mov eax, 0xfde9
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
cmp ecx, esi
mov dword [ebp - 0x10], ecx
je 0x471f21
push 2
pop edx
cmp dword [ebp - 4], edx
jne 0x471f19
fldz
fcomp qword [ebp - 0x58]
fnstsw ax
sahf
jne 0x471f19
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], esi
fild qword [ebp - 0x60]
fidiv dword [ebp - 0x10]
fstp qword [ebp - 0x58]
lea ebx, [ecx + ecx]
mov dword [ebp - 0x30], edx
jmp 0x471f3b
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
and dword [ebp - 4], 0
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
jne 0x471f48
push 1
pop eax
jmp 0x471f4a
xor eax, eax
mov edi, dword [ebp - 0x14]
push eax
push dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
add ebx, edi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push ebx
push edi
call fcn.004720b1
cmp dword [ebp - 4], 0
mov esi, eax
jne 0x471f98
push edi
call dword [sym.imp.MSVCRT.dll_free]
and dword [ebp - 0x14], 0
pop ecx
jmp 0x471f98
mov edi, dword [ebp - 0x40]
or edi, dword [ebp - 0x3c]
jne 0x471f84
push 1
pop esi
push esi
push dword [ebp - 0x24]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.004720b1
mov esi, eax
mov eax, dword [ebp - 0x40]
xor ebx, ebx
xor edi, edi
or eax, dword [ebp - 0x3c]
je 0x471fdb
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x1c]
sub eax, 3
cmp dword [ebp - 4], 2
jne 0x471fc3
mov cl, byte [eax]
test cl, 0x80
je 0x471fdb
inc edi
test cl, 0x40
jne 0x471fdb
dec eax
jmp 0x471fb3
cmp dword [0x4d8ddc], ebx
je 0x471fdb
cmp dword [ebp - 0x24], ebx
jne 0x471fdb
mov al, byte [eax]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
mov edi, eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp esi, ebx
jne 0x472050
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
je 0x472016
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x1c]
dec ecx
dec ecx
cmp edi, ebx
je 0x471ffe
sub ecx, edi
mov eax, dword [0x4d9aac]
sub eax, dword [ebp - 0x28]
add eax, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x48], eax
adc dword [ebp - 0x44], ebx
jmp 0x472021
mov ecx, dword [ebp + 0xc]
call fcn.00472279
mov dword [ebp - 8], eax
cmp dword [ebp - 0x3c], ebx
ja 0x471bd9
jb 0x47205a
cmp dword [ebp - 0x40], 0
ja 0x471bd9
jmp 0x47205a
or dword [ebp - 8], 0xffffffff
jmp 0x47205a
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
test esi, esi
setle al
jmp 0x472057
push 1
pop eax
cmp esi, eax
jne 0x47205a
mov dword [ebp - 8], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x472073
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
cmp dword [ebp - 8], 0
jge 0x47207e
or eax, 0xffffffff
jmp 0x4720ac
cmp dword [ebp - 8], 1
jne 0x47209a
cmp dword [ebp - 4], 2
jne 0x47209a
fld qword [ebp - 0x58]
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
fstp qword [esp]
call fcn.00472223
mov eax, dword [ebp - 8]
jmp 0x4720ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
pop edi
pop esi
pop ebx
leave
ret