Function at 0x45b908
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x24]
push ebx
push esi
and eax, 4
push edi
mov dword [esp + 0x1c], eax
je 0x45b927
and dword [ebp + 0x20], 0xbfffffff
xor esi, esi
cmp dword [ebp + 8], esi
je 0x45b934
mov dword [esp + 0x10], esi
jmp 0x45b950
test dword [ebp + 0x20], 0x40000000
je 0x45b948
mov eax, dword [0x57fcbc]
mov dword [esp + 0x10], eax
jmp 0x45b950
mov dword [esp + 0x10], 0x1000
mov eax, dword [esp + 0x10]
add eax, 0xc0
push eax
call fcn.004554e2
mov ebx, eax
cmp ebx, esi
jne 0x45b971
push 1
call fcn.004555d0
jmp 0x45bb17
cmp dword [ebp + 8], esi
je 0x45b99a
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, eax
or edx, ecx
jne 0x45b989
push 0x14
jmp 0x45ba2a
mov edx, dword [ebp + 0xc]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
jmp 0x45bb09
mov eax, dword [ebp + 0x20]
push dword [ebp + 0xc]
mov esi, 0x80000000
and eax, esi
mov dword [esp + 0x18], eax
je 0x45b9b8
call dword [sym.imp.msvcrt.dll__wcsdup]
or dword [ebx + 0x40], esi
jmp 0x45b9be
call dword [sym.imp.msvcrt.dll__strdup_1]
mov dword [ebx + 0x3c], eax
mov edi, eax
xor eax, eax
pop ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
je 0x45b9f2
cmp dword [0x5992d0], eax
jge 0x45ba37
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
push edi
call fcn.004555ec
mov edi, eax
mov dword [esp + 0x18], edi
xor eax, eax
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
cmp dword [0x5992d0], eax
push eax
push eax
setge dl
push 3
push eax
lea edx, [edx*4 + 3]
push edx
push esi
push edi
call ecx
push dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x18], esi
call fcn.0045552e
cmp esi, 0xffffffff
jne 0x45ba3f
push 2
pop esi
push ebx
call fcn.0045aa78
push esi
jmp 0x45b967
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x45b9f8
push dword [esp + 0x14]
mov dword [ebx + 0x38], esi
lea edi, [ebx + 0x28]
mov esi, 0x5c25c8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ebx + 0x2c]
mov ecx, dword [ebp + 0x18]
or ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], eax
je 0x45ba7d
mov ecx, esi
add ecx, dword [ebp + 0x18]
adc eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
xor edi, edi
cmp dword [esp + 0x1c], edi
je 0x45bae2
push edi
push edi
push edi
push 2
push edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esp + 0x1c], eax
cmp eax, edi
jne 0x45baa1
xor eax, eax
jmp 0x45bad0
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], eax
call edi
cmp dword [esp + 0x18], 0
je 0x45baca
push dword [esp + 0x14]
call edi
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [ebx + 4], eax
cmp eax, edi
je 0x45bae2
xor eax, eax
lea edi, [ebx + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
or esi, dword [ebp + 0x14]
je 0x45baef
push edi
push edi
push ebx
call fcn.0045a618
test dword [ebp + 0x20], 0x40000000
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xa4], eax
je 0x45bb09
mov edi, ebx
call fcn.0045b8b4
test byte [ebp + 0x24], 1
je 0x45bb15
push ebx
call fcn.0045b5dc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20