Function at 0x4204c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d293
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x288], eax
cmp byte [edi + 0x2c], al
jne 0x420eda
xorps xmm0, xmm0
mov dword [ebp - 0x28c], eax
movups xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
test byte [edi + 8], 2
mov dword [ebp - 4], eax
je 0x420a02
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00423c20
call fcn.004120c0
push eax
push dword [edi + 4]
lea eax, [ebp - 0x210]
push dword [edi]
push str._d__d__d
push 0xff
push eax
call fcn.0041f830
lea esi, [edi + 0xc]
mov dword [ebp - 0x27c], 0
add esp, 0x24
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x42058e
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
push eax
call fcn.0041f2b0
add esp, 0x10
test al, al
je 0x4209e2
cmp dword [ebp - 0x28c], 0
je 0x4209e2
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x4209e2
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 - 0x278], esi
test esi, esi
je 0x4209d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4209d3
mov ecx, dword [ebp - 0x27c]
add ecx, 4
push ecx
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x280], eax
test eax, eax
jne 0x420645
push eax
mov dword [ebp - 0x284], 0xffffffff
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4207a9
mov edi, dword [ebp - 0x280]
mov eax, dword [ebp - 0x27c]
mov dword [edi], eax
lea eax, [edi + 4]
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x28c]
test ecx, ecx
je 0x420696
test eax, eax
je 0x420686
push ecx
test edx, edx
je 0x42067b
push edx
push eax
call fcn.00423330
add esp, 0xc
jmp 0x420696
push 0
push eax
call fcn.00423c20
add esp, 0xc
call fcn.00429afb
mov dword [eax], 0x16
call fcn.0042576e
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 0x4206a6
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00405700
mov edi, dword [0x458ae0]
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x284], eax
test edi, edi
jne 0x420743
push 0x20
call fcn.00421b46
mov edi, eax
add esp, 4
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x420737
lea esi, [edi + 0x18]
mov dword [ebp - 0x290], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00421b46
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [ebp - 0x278]
jmp 0x420739
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x458ae0], edi
cmp esi, 0xffffffff
je 0x4207a3
cmp dword [ebp - 0x230], 0
je 0x4207a3
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [edi + 0x18]
call fcn.00420470
lea ecx, [edi + 0x18]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x42078e
lea eax, [ebp - 0x240]
push eax
call fcn.0041fa30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x240]
push eax
call fcn.0041fa30
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x274]
push 0x78
call fcn.00421b46
mov esi, eax
add esp, 4
mov dword [ebp - 0x27c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x420d82
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
push 0x44a75c
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 0
movups xmmword [ebp - 0x228], xmm0
call fcn.00405810
push 0
xorps xmm0, xmm0
mov byte [ebp - 4], 3
push 0x44a75c
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x280], 1
movups xmmword [ebp - 0x270], xmm0
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0
call fcn.00405810
cmp dword [ebp - 0x22c], 8
lea edx, [ebp - 0x240]
xorps xmm0, xmm0
mov dword [ebp - 4], 4
cmovae edx, dword [ebp - 0x240]
mov ecx, edx
mov dword [ebp - 0x280], 3
movups xmmword [ebp - 0x258], xmm0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x278], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420883
sub ecx, dword [ebp - 0x278]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x258]
call fcn.00405810
mov eax, 7
mov dword [ebp - 4], 5
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x280], eax
call fcn.00416520
mov ecx, dword [edi + 4]
mov dword [ebp - 0x278], eax
mov eax, dword [edi + 8]
mov edi, dword [edi]
mov dword [ebp - 0x274], 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 - 0x290], esi
call fcn.0040e4e0
mov dword [esi], vtable.t_taskMsgReplySGT.0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0xffffffff
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
movups xmmword [esi + 0x34], xmm0
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 7
mov word [esi + 0x34], ax
movups xmmword [esi + 0x4c], xmm0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 7
mov word [esi + 0x4c], ax
mov ecx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x278]
mov byte [ebp - 4], 7
mov dword [ecx + 0x20], edi
mov edi, ecx
mov dword [ecx + 0x74], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x284]
mov dword [edi + 0x28], eax
add edi, 0x2c
lea eax, [ebp - 0x258]
cmp edi, eax
je 0x420af5
cmp dword [ebp - 0x244], 8
mov edx, eax
mov ecx, dword [edi + 0x14]
cmovae edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x284], ecx
cmp eax, ecx
ja 0x420a34
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x420a10
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x420a12
mov dword [ebp - 0x284], 0xffffffff
jmp 0x4207a9
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x284], 0xffffffff
jb 0x4209f4
mov esi, dword [esi]
push esi
call fcn.0041f340
add esp, 4
jmp 0x4207a9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x284], eax
jmp 0x4207a9
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.00423330
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x420af5
cmp eax, 0x7ffffffe
ja 0x420ef7
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x420a53
mov esi, 0x7ffffffe
jmp 0x420a71
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x420a69
mov esi, 0x7ffffffe
jmp 0x420a71
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00405930
mov ecx, dword [ebp - 0x248]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x274], eax
mov dword [edi + 0x10], ecx
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x278]
push eax
call fcn.00423330
mov ecx, dword [ebp - 0x274]
xor eax, eax
add esp, 0xc
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x284]
cmp eax, 8
jb 0x420af3
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x420adf
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x420efc
mov ecx, esi
push edx
push ecx
call fcn.00421b76
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x420af5
mov dword [edi], ecx
mov edi, dword [ebp - 0x27c]
lea eax, [ebp - 0x270]
add edi, 0x44
cmp edi, eax
je 0x420c2f
cmp dword [ebp - 0x25c], 8
mov edx, eax
mov ecx, dword [edi + 0x14]
cmovae edx, dword [ebp - 0x270]
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x284], ecx
cmp eax, ecx
ja 0x420b6e
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x420b4a
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x420b4c
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.00423330
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x420c2f
cmp eax, 0x7ffffffe
ja 0x420ef7
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x420b8d
mov esi, 0x7ffffffe
jmp 0x420bab
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x420ba3
mov esi, 0x7ffffffe
jmp 0x420bab
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00405930
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x274], eax
mov dword [edi + 0x10], ecx
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x278]
push eax
call fcn.00423330
mov ecx, dword [ebp - 0x274]
xor eax, eax
add esp, 0xc
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x284]
cmp eax, 8
jb 0x420c2d
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x420c19
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x420efc
mov ecx, esi
push edx
push ecx
call fcn.00421b76
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x420c2f
mov dword [edi], ecx
mov edi, dword [ebp - 0x27c]
lea eax, [ebp - 0x228]
mov esi, dword [ebp - 0x228]
add edi, 0x5c
cmp edi, eax
je 0x420d7a
cmp dword [ebp - 0x214], 8
mov ecx, dword [ebp - 0x218]
cmovae eax, esi
mov dword [ebp - 0x274], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x278], eax
cmp ecx, eax
ja 0x420cb7
mov dword [ebp - 0x280], edi
mov edx, edi
cmp eax, 8
jb 0x420c84
mov edx, dword [edi]
mov dword [ebp - 0x280], edx
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
push dword [ebp - 0x274]
push edx
call fcn.00423330
mov eax, dword [ebp - 0x280]
add esp, 0xc
mov edi, dword [ebp - 0x27c]
xor ecx, ecx
mov word [esi + eax], cx
mov esi, dword [ebp - 0x228]
jmp 0x420d8a
cmp ecx, 0x7ffffffe
ja 0x420ef7
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x420cd7
mov esi, 0x7ffffffe
jmp 0x420cf4
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x420ced
mov esi, 0x7ffffffe
jmp 0x420cf4
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00405930
mov ecx, dword [ebp - 0x218]
mov dword [edi + 0x14], esi
mov dword [ebp - 0x280], eax
mov dword [edi + 0x10], ecx
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x274]
push eax
call fcn.00423330
mov eax, dword [ebp - 0x280]
xor ecx, ecx
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x278]
cmp ecx, 8
jb 0x420d72
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x420d62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420efc
mov eax, edx
push ecx
push eax
call fcn.00421b76
mov eax, dword [ebp - 0x280]
add esp, 8
mov esi, dword [ebp - 0x228]
mov dword [edi], eax
mov edi, dword [ebp - 0x27c]
jmp 0x420d8a
mov esi, dword [ebp - 0x228]
xor edi, edi
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x288]
mov dword [ebp - 4], 9
test al, 4
je 0x420dea
mov ecx, dword [ebp - 0x244]
and eax, 0xfffffffb
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x420dea
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420dda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420efc
push ecx
push edx
call fcn.00421b76
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 8
test al, 2
je 0x420e50
mov ecx, dword [ebp - 0x25c]
and eax, 0xfffffffd
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x420e50
mov eax, dword [ebp - 0x270]
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x420e40
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x278], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x420efc
mov eax, dword [ebp - 0x278]
push ecx
push eax
call fcn.00421b76
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 0
test al, 1
je 0x420e91
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x420e91
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x420e87
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420efc
push ecx
push esi
call fcn.00421b76
add esp, 8
push edi
call fcn.00417740
mov ecx, eax
call fcn.00417640
mov ecx, dword [ebp - 0x22c]
cmp ecx, 8
jb 0x420eda
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x420ed0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420efc
push ecx
push edx
call fcn.00421b76
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421dd5
mov esp, ebp
pop ebp
ret 8
call fcn.00402ec0
call fcn.0042577e
int3