Function at 0x420be0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d9a3
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 0x4215fa
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 0x421122
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00424340
call fcn.00412860
push eax
push dword [edi + 4]
lea eax, [ebp - 0x210]
push dword [edi]
push str._d__d__d
push 0xff
push eax
call fcn.0041ff50
lea esi, [edi + 0xc]
mov dword [ebp - 0x27c], 0
add esp, 0x24
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x420cae
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
push eax
call fcn.0041f9d0
add esp, 0x10
test al, al
je 0x421102
cmp dword [ebp - 0x28c], 0
je 0x421102
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x421102
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 0x4210f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4210f3
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 0x420d65
push eax
mov dword [ebp - 0x284], 0xffffffff
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420ec9
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 0x420db6
test eax, eax
je 0x420da6
push ecx
test edx, edx
je 0x420d9b
push edx
push eax
call fcn.00423a50
add esp, 0xc
jmp 0x420db6
push 0
push eax
call fcn.00424340
add esp, 0xc
call fcn.0042a21b
mov dword [eax], 0x16
call fcn.00425e8e
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 0x420dc6
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00405750
mov edi, dword [0x458ad0]
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x284], eax
test edi, edi
jne 0x420e63
push 0x20
call fcn.00422267
mov edi, eax
add esp, 4
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x420e57
lea esi, [edi + 0x18]
mov dword [ebp - 0x290], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00422267
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 0x420e59
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x458ad0], edi
cmp esi, 0xffffffff
je 0x420ec3
cmp dword [ebp - 0x230], 0
je 0x420ec3
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.00420b90
lea ecx, [edi + 0x18]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x420eae
lea eax, [ebp - 0x240]
push eax
call fcn.00420150
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x240]
push eax
call fcn.00420150
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x274]
push 0x78
call fcn.00422267
mov esi, eax
add esp, 4
mov dword [ebp - 0x27c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x4214a2
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x218], 0
push 0x44a78c
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 0
movups xmmword [ebp - 0x228], xmm0
call fcn.00405860
push 0
xorps xmm0, xmm0
mov byte [ebp - 4], 3
push 0x44a78c
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.00405860
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 0x420fa3
sub ecx, dword [ebp - 0x278]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x258]
call fcn.00405860
mov eax, 7
mov dword [ebp - 4], 5
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x280], eax
call fcn.00416ce0
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.0040ec90
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 0x421215
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 0x421154
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x421130
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x421132
mov dword [ebp - 0x284], 0xffffffff
jmp 0x420ec9
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x284], 0xffffffff
jb 0x421114
mov esi, dword [esi]
push esi
call fcn.0041fa60
add esp, 4
jmp 0x420ec9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x284], eax
jmp 0x420ec9
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.00423a50
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x421215
cmp eax, 0x7ffffffe
ja 0x421617
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x421173
mov esi, 0x7ffffffe
jmp 0x421191
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x421189
mov esi, 0x7ffffffe
jmp 0x421191
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00405990
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.00423a50
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 0x421213
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x4211ff
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x42161c
mov ecx, esi
push edx
push ecx
call fcn.00422297
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x421215
mov dword [edi], ecx
mov edi, dword [ebp - 0x27c]
lea eax, [ebp - 0x270]
add edi, 0x44
cmp edi, eax
je 0x42134f
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 0x42128e
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x42126a
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x42126c
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.00423a50
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x42134f
cmp eax, 0x7ffffffe
ja 0x421617
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4212ad
mov esi, 0x7ffffffe
jmp 0x4212cb
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4212c3
mov esi, 0x7ffffffe
jmp 0x4212cb
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00405990
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.00423a50
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 0x42134d
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x421339
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x42161c
mov ecx, esi
push edx
push ecx
call fcn.00422297
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x42134f
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 0x42149a
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 0x4213d7
mov dword [ebp - 0x280], edi
mov edx, edi
cmp eax, 8
jb 0x4213a4
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.00423a50
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 0x4214aa
cmp ecx, 0x7ffffffe
ja 0x421617
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4213f7
mov esi, 0x7ffffffe
jmp 0x421414
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x42140d
mov esi, 0x7ffffffe
jmp 0x421414
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov ecx, edi
push eax
call fcn.00405990
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.00423a50
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 0x421492
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x421482
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42161c
mov eax, edx
push ecx
push eax
call fcn.00422297
mov eax, dword [ebp - 0x280]
add esp, 8
mov esi, dword [ebp - 0x228]
mov dword [edi], eax
mov edi, dword [ebp - 0x27c]
jmp 0x4214aa
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 0x42150a
mov ecx, dword [ebp - 0x244]
and eax, 0xfffffffb
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x42150a
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4214fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42161c
push ecx
push edx
call fcn.00422297
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 8
test al, 2
je 0x421570
mov ecx, dword [ebp - 0x25c]
and eax, 0xfffffffd
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x421570
mov eax, dword [ebp - 0x270]
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x421560
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x278], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x42161c
mov eax, dword [ebp - 0x278]
push ecx
push eax
call fcn.00422297
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 0
test al, 1
je 0x4215b1
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x4215b1
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4215a7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42161c
push ecx
push esi
call fcn.00422297
add esp, 8
push edi
call fcn.00417f00
mov ecx, eax
call fcn.00417e00
mov ecx, dword [ebp - 0x22c]
cmp ecx, 8
jb 0x4215fa
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4215f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42161c
push ecx
push edx
call fcn.00422297
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.004224f6
mov esp, ebp
pop ebp
ret 8
call fcn.00402f00
call fcn.00425e9e
int3