Function at 0x457438
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 0x457457
and dword [ebp + 0x20], 0xbfffffff
xor esi, esi
cmp dword [ebp + 8], esi
je 0x457464
mov dword [esp + 0x10], esi
jmp 0x457480
test dword [ebp + 0x20], 0x40000000
je 0x457478
mov eax, dword [0x57dbd4]
mov dword [esp + 0x10], eax
jmp 0x457480
mov dword [esp + 0x10], 0x1000
mov eax, dword [esp + 0x10]
add eax, 0xc0
push eax
call fcn.00451012
mov ebx, eax
cmp ebx, esi
jne 0x4574a1
push 1
call fcn.00451100
jmp 0x457647
cmp dword [ebp + 8], esi
je 0x4574ca
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, eax
or edx, ecx
jne 0x4574b9
push 0x14
jmp 0x45755a
mov edx, dword [ebp + 0xc]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
jmp 0x457639
mov eax, dword [ebp + 0x20]
push dword [ebp + 0xc]
mov esi, 0x80000000
and eax, esi
mov dword [esp + 0x18], eax
je 0x4574e8
call dword [sym.imp.msvcrt.dll__wcsdup]
or dword [ebx + 0x40], esi
jmp 0x4574ee
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 0x457522
cmp dword [0x5971e8], eax
jge 0x457567
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
push edi
call fcn.0045111c
mov edi, eax
mov dword [esp + 0x18], edi
xor eax, eax
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
cmp dword [0x5971e8], 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.0045105e
cmp esi, 0xffffffff
jne 0x45756f
push 2
pop esi
push ebx
call fcn.004565a8
push esi
jmp 0x457497
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x457528
push dword [esp + 0x14]
mov dword [ebx + 0x38], esi
lea edi, [ebx + 0x28]
mov esi, 0x5c0328
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 0x4575ad
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 0x457612
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 0x4575d1
xor eax, eax
jmp 0x457600
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 0x4575fa
push dword [esp + 0x14]
call edi
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [ebx + 4], eax
cmp eax, edi
je 0x457612
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 0x45761f
push edi
push edi
push ebx
call fcn.00456148
test dword [ebp + 0x20], 0x40000000
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xa4], eax
je 0x457639
mov edi, ebx
call fcn.004573e4
test byte [ebp + 0x24], 1
je 0x457645
push ebx
call fcn.0045710c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20