Function at 0x407f10
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x54
mov eax, dword [0x5f1cf8]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [eax + 0x34c]
push esi
push edi
xor edi, edi
mov dword [esp + 0x3c], eax
mov eax, ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407f67
sub eax, ecx
add eax, 0x20
push 8
push eax
call fcn.0040b700
mov esi, eax
add esp, 8
cmp esi, edi
je 0x408370
mov dword [esp + 0x14], edi
jmp 0x407f92
xor edi, edi
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0x4dd1ec]
push edi
push 0x4c0984
push ebp
push ebx
push esi
call fcn.00414bd0
mov edi, eax
push str.CONNECT_REQUEST
push edi
call fcn.0040bba0
add esp, 0x1c
push esi
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x407fed
mov eax, dword [esp + 0x14]
add eax, 4
cmp eax, 8
mov dword [esp + 0x14], eax
jb 0x407f90
mov dword [esp + 0x10], 0x7f6
jmp 0x408168
push str.CONNECT_ANSWER
push edi
call fcn.0040bba0
add esp, 8
push esi
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x40801e
mov dword [esp + 0x10], 0x7f7
jmp 0x408168
push str.CONNECT_DATA
push edi
call fcn.0040bba0
add esp, 8
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esp + 0x40], eax
jne 0x40804c
mov dword [esp + 0x10], 0x7f8
jmp 0x408168
push 4
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x408070
mov dword [esp + 0x10], 0x7f9
jmp 0x408168
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40808c
mov dword [esp + 0x10], 0x7fe
jmp 0x408168
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x2c]
imul ecx, ecx, 0x3e8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4080b3
mov dword [esp + 0x10], 0x7fd
jmp 0x408168
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 0xa
lea eax, [esp + 0x4c]
push eax
push edx
call fcn.004155a0
push 0
push 0x4c0984
lea eax, [esp + 0x5c]
push eax
push 0x4c0984
push ebp
push ebx
push esi
call fcn.00414bd0
mov edi, eax
push str.DATA
push edi
call fcn.0040bba0
add esp, 0x30
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x408204
mov dword [esp + 0x10], 0x7fa
mov ebx, dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov dword [esp + 0x18], eax
je 0x408127
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x408138
push eax
call ebx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x408143
push eax
call ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40814e
push eax
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40815d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408168
push eax
call ebx
push esi
call fcn.0040b780
mov ebx, dword [esp + 0x14]
add esp, 4
test ebx, ebx
je 0x408183
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x408194
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40819f
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4081ae
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4081b9
push eax
call esi
test ebx, ebx
je 0x408370
cmp ebx, 0x7fc
mov edx, dword [esp + 0x18]
mov ecx, dword [str.HY000]
push edx
jne 0x408343
mov eax, dword [str.Cant_open_shared_memory__client_could_not_create__s_event___lu_]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x4c]
mov eax, ebx
call fcn.00407cf0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00463f56
add esp, 0x54
ret
push 0x3e84
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40822b
mov dword [esp + 0x10], 0x7fb
jmp 0x40810e
push str.SERVER_WROTE
push edi
call fcn.0040bba0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenEventA]
add esp, 8
push esi
push 0
push 0x100002
call ebp
test eax, eax
mov dword [esp + 0x34], eax
jne 0x40825e
mov dword [esp + 0x10], 0x7fc
jmp 0x40810e
push str.SERVER_READ
push edi
call fcn.0040bba0
add esp, 8
push esi
push 0
push 0x100002
call ebp
mov ebx, eax
test ebx, ebx
jne 0x408289
mov dword [esp + 0x10], 0x7fc
jmp 0x408112
push str.CLIENT_WROTE
push edi
call fcn.0040bba0
add esp, 8
push esi
push 0
push 0x100002
call ebp
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4082b6
mov dword [esp + 0x10], 0x7fc
jmp 0x408112
push str.CLIENT_READ
push edi
call fcn.0040bba0
add esp, 8
push esi
push 0
push 0x100002
call ebp
test eax, eax
mov dword [esp + 0x30], eax
jne 0x4082e3
mov dword [esp + 0x10], 0x7fc
jmp 0x408112
push str.CONNECTION_CLOSED
push edi
call fcn.0040bba0
add esp, 8
push esi
push 0
push 0x100002
call ebp
mov ebp, eax
test ebp, ebp
jne 0x40830e
mov dword [esp + 0x10], 0x7fc
jmp 0x408112
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push ebp
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push ebx
push eax
push ecx
push edx
call fcn.00415420
mov ecx, dword [esp + 0x60]
add esp, 0x1c
mov dword [ecx], eax
jmp 0x408168
mov eax, dword [ebx*4 + 0x4dc7e8]
push eax
push ecx
mov ecx, dword [esp + 0x48]
mov eax, ebx
call fcn.00407cf0
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00463f56
add esp, 0x54
ret
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00463f56
add esp, 0x54
ret