Function at 0x420bf0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d9b3
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 0x42160a
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 0x421132
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00424350
call fcn.00412710
push eax
push dword [edi + 4]
lea eax, [ebp - 0x210]
push dword [edi]
push str._d__d__d
push 0xff
push eax
call fcn.0041ff60
lea esi, [edi + 0xc]
mov dword [ebp - 0x27c], 0
add esp, 0x24
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x420cbe
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
push eax
call fcn.0041f9e0
add esp, 0x10
test al, al
je 0x421112
cmp dword [ebp - 0x28c], 0
je 0x421112
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x421112
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 0x421103
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x421103
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 0x420d75
push eax
mov dword [ebp - 0x284], 0xffffffff
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420ed9
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 0x420dc6
test eax, eax
je 0x420db6
push ecx
test edx, edx
je 0x420dab
push edx
push eax
call fcn.00423a60
add esp, 0xc
jmp 0x420dc6
push 0
push eax
call fcn.00424350
add esp, 0xc
call fcn.0042a22b
mov dword [eax], 0x16
call fcn.00425e9e
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 0x420dd6
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00405750
mov edi, dword [0x458ae0]
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x284], eax
test edi, edi
jne 0x420e73
push 0x20
call fcn.00422276
mov edi, eax
add esp, 4
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x420e67
lea esi, [edi + 0x18]
mov dword [ebp - 0x290], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00422276
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 0x420e69
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x458ae0], edi
cmp esi, 0xffffffff
je 0x420ed3
cmp dword [ebp - 0x230], 0
je 0x420ed3
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.00420ba0
lea ecx, [edi + 0x18]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x420ebe
lea eax, [ebp - 0x240]
push eax
call fcn.00420160
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x240]
push eax
call fcn.00420160
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x274]
push 0x78
call fcn.00422276
mov esi, eax
add esp, 4
mov dword [ebp - 0x27c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x4214b2
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 0x420fb3
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.00416b90
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.0040eb40
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 0x421225
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 0x421164
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x421140
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x421142
mov dword [ebp - 0x284], 0xffffffff
jmp 0x420ed9
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x284], 0xffffffff
jb 0x421124
mov esi, dword [esi]
push esi
call fcn.0041fa70
add esp, 4
jmp 0x420ed9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x284], eax
jmp 0x420ed9
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.00423a60
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x421225
cmp eax, 0x7ffffffe
ja 0x421627
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x421183
mov esi, 0x7ffffffe
jmp 0x4211a1
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x421199
mov esi, 0x7ffffffe
jmp 0x4211a1
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.00423a60
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 0x421223
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x42120f
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x42162c
mov ecx, esi
push edx
push ecx
call fcn.004222a6
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x421225
mov dword [edi], ecx
mov edi, dword [ebp - 0x27c]
lea eax, [ebp - 0x270]
add edi, 0x44
cmp edi, eax
je 0x42135f
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 0x42129e
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x42127a
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x42127c
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.00423a60
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x42135f
cmp eax, 0x7ffffffe
ja 0x421627
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4212bd
mov esi, 0x7ffffffe
jmp 0x4212db
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4212d3
mov esi, 0x7ffffffe
jmp 0x4212db
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.00423a60
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 0x42135d
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x421349
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x42162c
mov ecx, esi
push edx
push ecx
call fcn.004222a6
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x42135f
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 0x4214aa
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 0x4213e7
mov dword [ebp - 0x280], edi
mov edx, edi
cmp eax, 8
jb 0x4213b4
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.00423a60
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 0x4214ba
cmp ecx, 0x7ffffffe
ja 0x421627
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x421407
mov esi, 0x7ffffffe
jmp 0x421424
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x42141d
mov esi, 0x7ffffffe
jmp 0x421424
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.00423a60
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 0x4214a2
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x421492
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42162c
mov eax, edx
push ecx
push eax
call fcn.004222a6
mov eax, dword [ebp - 0x280]
add esp, 8
mov esi, dword [ebp - 0x228]
mov dword [edi], eax
mov edi, dword [ebp - 0x27c]
jmp 0x4214ba
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 0x42151a
mov ecx, dword [ebp - 0x244]
and eax, 0xfffffffb
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x42151a
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42150a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42162c
push ecx
push edx
call fcn.004222a6
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 8
test al, 2
je 0x421580
mov ecx, dword [ebp - 0x25c]
and eax, 0xfffffffd
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x421580
mov eax, dword [ebp - 0x270]
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x421570
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x278], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x42162c
mov eax, dword [ebp - 0x278]
push ecx
push eax
call fcn.004222a6
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 0
test al, 1
je 0x4215c1
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x4215c1
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4215b7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42162c
push ecx
push esi
call fcn.004222a6
add esp, 8
push edi
call fcn.00417db0
mov ecx, eax
call fcn.00417cb0
mov ecx, dword [ebp - 0x22c]
cmp ecx, 8
jb 0x42160a
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421600
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42162c
push ecx
push edx
call fcn.004222a6
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.00422505
mov esp, ebp
pop ebp
ret 8
call fcn.00402f00
call fcn.00425eae
int3