Function at 0x420970
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d733
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 0x42138a
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 0x420eb2
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004240d0
call fcn.00412490
push eax
push dword [edi + 4]
lea eax, [ebp - 0x210]
push dword [edi]
push str._d__d__d
push 0xff
push eax
call fcn.0041fce0
lea esi, [edi + 0xc]
mov dword [ebp - 0x27c], 0
add esp, 0x24
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x420a3e
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x28c]
push ecx
push eax
call fcn.0041f760
add esp, 0x10
test al, al
je 0x420e92
cmp dword [ebp - 0x28c], 0
je 0x420e92
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x420e92
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 0x420e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x420e83
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 0x420af5
push eax
mov dword [ebp - 0x284], 0xffffffff
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420c59
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 0x420b46
test eax, eax
je 0x420b36
push ecx
test edx, edx
je 0x420b2b
push edx
push eax
call fcn.004237e0
add esp, 0xc
jmp 0x420b46
push 0
push eax
call fcn.004240d0
add esp, 0xc
call fcn.00429fab
mov dword [eax], 0x16
call fcn.00425c1e
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 0x420b56
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 0x420bf3
push 0x20
call fcn.00421ff6
mov edi, eax
add esp, 4
mov dword [ebp - 0x280], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x420be7
lea esi, [edi + 0x18]
mov dword [ebp - 0x290], esi
push 0x2c
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00421ff6
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 0x420be9
xor edi, edi
mov byte [ebp - 4], 0
mov dword [0x458ae0], edi
cmp esi, 0xffffffff
je 0x420c53
cmp dword [ebp - 0x230], 0
je 0x420c53
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.00420920
lea ecx, [edi + 0x18]
mov eax, dword [eax]
cmp eax, dword [ecx]
je 0x420c3e
lea eax, [ebp - 0x240]
push eax
call fcn.0041fee0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x18]
lea eax, [ebp - 0x240]
push eax
call fcn.0041fee0
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x274]
push 0x78
call fcn.00421ff6
mov esi, eax
add esp, 4
mov dword [ebp - 0x27c], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x421232
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 0x420d33
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.00416910
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.0040e8c0
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 0x420fa5
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 0x420ee4
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x420ec0
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x420ec2
mov dword [ebp - 0x284], 0xffffffff
jmp 0x420c59
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x284], 0xffffffff
jb 0x420ea4
mov esi, dword [esi]
push esi
call fcn.0041f7f0
add esp, 4
jmp 0x420c59
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x284], eax
jmp 0x420c59
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.004237e0
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x420fa5
cmp eax, 0x7ffffffe
ja 0x4213a7
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x420f03
mov esi, 0x7ffffffe
jmp 0x420f21
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x420f19
mov esi, 0x7ffffffe
jmp 0x420f21
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.004237e0
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 0x420fa3
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x420f8f
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4213ac
mov ecx, esi
push edx
push ecx
call fcn.00422026
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x420fa5
mov dword [edi], ecx
mov edi, dword [ebp - 0x27c]
lea eax, [ebp - 0x270]
add edi, 0x44
cmp edi, eax
je 0x4210df
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 0x42101e
mov dword [ebp - 0x274], edi
cmp ecx, 8
jb 0x420ffa
mov ecx, dword [edi]
mov dword [ebp - 0x274], ecx
jmp 0x420ffc
mov ecx, edi
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push edx
push ecx
call fcn.004237e0
mov eax, dword [ebp - 0x274]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x4210df
cmp eax, 0x7ffffffe
ja 0x4213a7
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x42103d
mov esi, 0x7ffffffe
jmp 0x42105b
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x421053
mov esi, 0x7ffffffe
jmp 0x42105b
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.004237e0
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 0x4210dd
mov ecx, dword [edi]
lea edx, [eax*2 + 2]
cmp edx, 0x1000
jb 0x4210c9
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4213ac
mov ecx, esi
push edx
push ecx
call fcn.00422026
mov eax, dword [ebp - 0x274]
add esp, 8
mov dword [edi], eax
jmp 0x4210df
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 0x42122a
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 0x421167
mov dword [ebp - 0x280], edi
mov edx, edi
cmp eax, 8
jb 0x421134
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.004237e0
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 0x42123a
cmp ecx, 0x7ffffffe
ja 0x4213a7
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x421187
mov esi, 0x7ffffffe
jmp 0x4211a4
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x42119d
mov esi, 0x7ffffffe
jmp 0x4211a4
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.004237e0
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 0x421222
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x421212
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4213ac
mov eax, edx
push ecx
push eax
call fcn.00422026
mov eax, dword [ebp - 0x280]
add esp, 8
mov esi, dword [ebp - 0x228]
mov dword [edi], eax
mov edi, dword [ebp - 0x27c]
jmp 0x42123a
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 0x42129a
mov ecx, dword [ebp - 0x244]
and eax, 0xfffffffb
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x42129a
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42128a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4213ac
push ecx
push edx
call fcn.00422026
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 8
test al, 2
je 0x421300
mov ecx, dword [ebp - 0x25c]
and eax, 0xfffffffd
mov dword [ebp - 0x288], eax
cmp ecx, 8
jb 0x421300
mov eax, dword [ebp - 0x270]
lea ecx, [ecx*2 + 2]
mov edx, eax
cmp ecx, 0x1000
jb 0x4212f0
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x278], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x4213ac
mov eax, dword [ebp - 0x278]
push ecx
push eax
call fcn.00422026
mov eax, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 4], 0
test al, 1
je 0x421341
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x421341
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x421337
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4213ac
push ecx
push esi
call fcn.00422026
add esp, 8
push edi
call fcn.00417b30
mov ecx, eax
call fcn.00417a30
mov ecx, dword [ebp - 0x22c]
cmp ecx, 8
jb 0x42138a
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421380
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4213ac
push ecx
push edx
call fcn.00422026
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.00422285
mov esp, ebp
pop ebp
ret 8
call fcn.00402f00
call fcn.00425c2e
int3