Function at 0x40749c
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 0x4074bb
and dword [ebp + 0x20], 0xbfffffff
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4074c8
mov dword [esp + 0x10], esi
jmp 0x4074e4
test dword [ebp + 0x20], 0x40000000
je 0x4074dc
mov eax, dword [0xea91b0]
mov dword [esp + 0x10], eax
jmp 0x4074e4
mov dword [esp + 0x10], 0x1000
mov eax, dword [esp + 0x10]
add eax, 0xc0
push eax
call fcn.00401076
mov ebx, eax
cmp ebx, esi
jne 0x407505
push 1
call fcn.00401164
jmp 0x4076ab
cmp dword [ebp + 8], esi
je 0x40752e
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, eax
or edx, ecx
jne 0x40751d
push 0x14
jmp 0x4075be
mov edx, dword [ebp + 0xc]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
jmp 0x40769d
mov eax, dword [ebp + 0x20]
push dword [ebp + 0xc]
mov esi, 0x80000000
and eax, esi
mov dword [esp + 0x18], eax
je 0x40754c
call dword [0xec9428]
or dword [ebx + 0x40], esi
jmp 0x407552
call dword [0xec941c]
mov dword [ebx + 0x3c], eax
mov edi, eax
xor eax, eax
pop ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
je 0x407586
cmp dword [0xec27c4], eax
jge 0x4075cb
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
push edi
call fcn.00401180
mov edi, eax
mov dword [esp + 0x18], edi
xor eax, eax
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
cmp dword [0xec27c4], 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.004010c2
cmp esi, 0xffffffff
jne 0x4075d3
push 2
pop esi
push ebx
call fcn.0040660c
push esi
jmp 0x4074fb
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40758c
push dword [esp + 0x14]
mov dword [ebx + 0x38], esi
lea edi, [ebx + 0x28]
mov esi, 0x4b5b48
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 0x407611
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 0x407676
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 0x407635
xor eax, eax
jmp 0x407664
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 0x40765e
push dword [esp + 0x14]
call edi
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [ebx + 4], eax
cmp eax, edi
je 0x407676
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 0x407683
push edi
push edi
push ebx
call fcn.004061ac
test dword [ebp + 0x20], 0x40000000
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xa4], eax
je 0x40769d
mov edi, ebx
call fcn.00407448
test byte [ebp + 0x24], 1
je 0x4076a9
push ebx
call fcn.00407170
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20