Function at 0x420880
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x27c], edi
cmp byte [edi + 0x2c], bl
jne 0x420e13
xor eax, eax
mov dword [ebp - 0x284], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
test byte [edi + 8], 2
mov dword [ebp - 4], eax
je 0x420dae
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004238c0
call fcn.00411560
push eax
push dword [edi + 4]
lea eax, [ebp - 0x210]
push dword [edi]
push str._d__d__d
push 0xff
push eax
call fcn.0041f570
lea esi, [edi + 0xc]
mov dword [ebp - 0x274], ebx
add esp, 0x24
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x42093d
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x284]
push ecx
push eax
call fcn.0041eca0
add esp, 0x10
test al, al
je 0x420d8e
cmp dword [ebp - 0x284], 0
je 0x420d8e
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x420d8e
lea ecx, [ebp - 0x210]
add eax, 4
push ecx
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x280], esi
test esi, esi
je 0x420d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x420d7f
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x278], eax
test eax, eax
jne 0x4209f4
push eax
mov dword [ebp - 0x278], 0xffffffff
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420b4f
mov edi, dword [ebp - 0x278]
mov eax, dword [ebp - 0x274]
mov dword [edi], eax
lea eax, [edi + 4]
mov ecx, dword [ebp - 0x274]
test ecx, ecx
je 0x420a45
test eax, eax
je 0x420a35
mov edx, dword [ebp - 0x284]
push ecx
test edx, edx
je 0x420a2a
push edx
push eax
call fcn.00422b20
add esp, 0xc
jmp 0x420a45
push 0
push eax
call fcn.004238c0
add esp, 0xc
call fcn.00427f2a
mov dword [eax], 0x16
call fcn.00425504
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420a55
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00402e40
mov edi, dword [0x44ef40]
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x278], eax
test edi, edi
jne 0x420ae1
push 0x20
call fcn.0042187c
mov edi, eax
add esp, 4
mov dword [ebp - 0x288], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x420ad5
lea esi, [edi + 0x18]
mov dword [ebp - 0x28c], esi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00420140
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [ebp - 0x280]
jmp 0x420ad7
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x44ef40], edi
cmp esi, 0xffffffff
je 0x420b49
cmp dword [ebp - 0x218], 0
je 0x420b49
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x18]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [edi + 0x18]
call fcn.004207f0
cmp dword [eax], esi
lea esi, [edi + 0x18]
je 0x420b2c
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0041fb70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0041fb70
mov ecx, dword [ebp - 0x280]
push edi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x27c]
push 0x78
call fcn.0042187c
mov esi, eax
add esp, 4
mov dword [ebp - 0x280], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x420dbc
xor eax, eax
mov dword [ebp - 0x260], 0
push eax
push 0x444414
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
call fcn.00402e40
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x444414
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x274], 1
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
call fcn.00402e40
cmp dword [ebp - 0x214], 8
lea edx, [ebp - 0x228]
mov dword [ebp - 4], 4
cmovae edx, dword [ebp - 0x228]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x274], 3
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420c20
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.00402e40
mov eax, 7
mov dword [ebp - 4], 5
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x274], eax
call fcn.004164b0
mov ecx, dword [edi + 4]
mov ebx, eax
mov eax, dword [edi + 8]
mov edi, dword [edi]
mov dword [ebp - 0x27c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 3
mov dword [esi], vtable.t_ipcServerTaskReplySGT.0
add esi, 0x10
push 3
mov ecx, esi
mov dword [ebp - 4], 6
mov dword [ebp - 0x28c], esi
call fcn.0040d6e0
mov dword [esi], vtable.t_taskMsgReplySGT.0
xor eax, eax
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 7
mov word [esi + 0x34], ax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 7
mov word [esi + 0x4c], ax
mov esi, dword [ebp - 0x280]
mov eax, dword [ebp - 0x27c]
mov byte [ebp - 4], 7
mov dword [esi + 0x24], eax
lea ecx, [esi + 0x2c]
mov eax, dword [ebp - 0x278]
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x240]
mov dword [esi + 0x74], ebx
mov dword [esi + 0x20], edi
cmp ecx, eax
je 0x420d29
cmp dword [ebp - 0x22c], 8
push dword [ebp - 0x230]
cmovae eax, dword [ebp - 0x240]
push eax
call fcn.00402e40
lea ecx, [esi + 0x44]
lea eax, [ebp - 0x258]
cmp ecx, eax
je 0x420d50
cmp dword [ebp - 0x244], 8
push dword [ebp - 0x248]
cmovae eax, dword [ebp - 0x258]
push eax
call fcn.00402e40
lea ecx, [esi + 0x5c]
lea eax, [ebp - 0x270]
cmp ecx, eax
je 0x420d77
cmp dword [ebp - 0x25c], 8
push dword [ebp - 0x260]
cmovae eax, dword [ebp - 0x270]
push eax
call fcn.00402e40
mov ebx, dword [ebp - 0x288]
jmp 0x420dbe
mov dword [ebp - 0x278], 0xffffffff
jmp 0x420b4f
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x278], 0xffffffff
jb 0x420da0
mov esi, dword [esi]
push esi
call fcn.0041ed30
add esp, 4
jmp 0x420b4f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x278], eax
jmp 0x420b4f
xor esi, esi
test bl, 4
je 0x420dd1
lea ecx, [ebp - 0x240]
and ebx, 0xfffffffb
call fcn.00402d90
test bl, 2
je 0x420de4
lea ecx, [ebp - 0x258]
and ebx, 0xfffffffd
call fcn.00402d90
mov dword [ebp - 4], 0
test bl, 1
je 0x420dfb
lea ecx, [ebp - 0x270]
call fcn.00402d90
push esi
call fcn.00417ad0
mov ecx, eax
call fcn.004179c0
lea ecx, [ebp - 0x228]
call fcn.00402d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret 8