Function at 0x4015f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x40e891
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4130d8]
xor eax, ebp
mov dword [ebp + 0x264], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x274]
xor ebx, ebx
cmp dword [ebp + 0x270], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jge 0x40168f
push 0xf
push str.not_enough_args
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
call fcn.004014e0
push 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 1
call dword [sym.imp.eSf3mfw.dll_Ordinal_237]
push 0x411050
lea ecx, [ebp - 0xf4]
push ecx
call fcn.00402450
mov edx, dword [eax + 8]
push edx
push ebx
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x4016e9
push 0x19
push str.cannot_open_shared_memory
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
call fcn.004014e0
push 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call dword [sym.imp.eSf3mfw.dll_Ordinal_237]
push 0x411050
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00402450
push 0xd0
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 1
lea ecx, [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.eSf3mfw.dll_Ordinal_656]
mov edx, dword [edi + 0xbc]
push ebx
push edx
sub esp, 0x1c
lea eax, [edi + 0x3e]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 3
call fcn.004015b0
lea ecx, [ebp]
call sub.eSf3mfwdsdk.dll_Ordinal_1093
mov ecx, dword [edi + 0xcc]
mov edx, dword [edi + 0xc8]
mov eax, dword [edi + 0xc4]
push ebx
push ebx
push ecx
mov ecx, dword [edi + 0xc0]
push edx
push eax
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call sub.eSf3mfwdsdk.dll_Ordinal_1092
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x7c]
push edx
mov edx, dword [ebp - 0x5c]
sub esp, 0x18
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x58]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x50]
sub esp, 0x24
mov esi, esp
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], esp
mov dword [eax + 0x10], ecx
push 0xffffffffffffffff
mov dword [eax + 0x14], edx
push ebx
lea eax, [ebp]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401400
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x20], edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
mov byte [ebp - 4], 5
call fcn.004015b0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call sub.eSf3mfwdsdk.dll_Ordinal_1091
add esp, 0x60
lea ecx, [ebp + 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 6
call dword [sym.imp.eSf3mfw.dll_Ordinal_5822]
lea edx, [ebp + 0x40]
push edx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call dword [sym.imp.eSf3mfw.dll_Ordinal_5824]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
push ecx
push edx
push str._s_s.tmp
lea eax, [ebp + 0x5c]
push 0x104
push eax
mov byte [ebp - 4], 8
call fcn.00402e12
lea ecx, [ebp + 0x5c]
push 0x40f1f0
push ecx
call fcn.00402dfb
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 0x40]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov esi, eax
mov byte [ecx + 4], bl
call fcn.00401400
push esi
call fcn.004013a0
add esp, 4
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x24]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401400
push esi
call fcn.004013a0
push esi
call fcn.00402cc9
push esi
call fcn.00402ac3
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x10
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x58], edi
jb 0x4018a8
mov ecx, dword [ebp + 0x44]
push ecx
call dword [sym.imp.eSf3mfw.dll_Ordinal_6271]
add esp, 4
mov esi, 0xf
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x54], ebx
mov byte [ebp + 0x44], bl
cmp dword [ebp + 0x3c], edi
jb 0x4018c8
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.eSf3mfw.dll_Ordinal_6271]
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x4018e2
call dword [sym.imp.eSf3mfw.dll_Ordinal_5019]
cmp dword [ebp + 0x18], edi
jb 0x4018f4
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.eSf3mfw.dll_Ordinal_6271]
add esp, 4
lea ecx, [ebp - 0x7c]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov byte [ebp - 4], bl
call dword [sym.imp.eSf3mfw.dll_Ordinal_1168]
jmp 0x401913
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x401921
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.004020f0
add ebp, 0x268
mov esp, ebp
pop ebp
ret