Function at 0x417970
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d59b6
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x693f30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea esi, [ebp - 0x16]
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 0x10]
nop dword [eax + eax]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x4179b0
push ecx
lea eax, [ebp - 0x16]
push eax
push esi
lea ecx, [ebp - 0xb8]
call fcn.00418440
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x3f8]
mov ecx, edx
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417a10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.004066d0
push 0x6374c4
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fab0
add esp, 0xc
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
push ecx
push eax
push dword [ebp - 0xbc]
lea ecx, [ebp - 0x88]
call fcn.00418260
xor esi, esi
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0xbc], esi
cmovae eax, dword [ebp - 0x88]
push eax
push esi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
mov dword [ebp - 0xc0], edi
test edi, edi
je 0x417ab7
push ebx
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov dword [ebp - 0xbc], esi
test esi, esi
jne 0x417abd
push edi
call ebx
jmp 0x417abd
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x74]
cmp ecx, 8
jb 0x417afe
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417af4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417cfa
push ecx
push edx
call fcn.005a242d
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x8c]
cmp ecx, 8
jb 0x417b59
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417b4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417cfa
push ecx
push edx
call fcn.005a242d
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x417bb4
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417baa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417cfa
push ecx
push edx
call fcn.005a242d
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xa4]
cmp ecx, 8
jb 0x417c0c
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417c02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417cfa
push ecx
push edx
call fcn.005a242d
add esp, 8
test edi, edi
je 0x417c4b
test esi, esi
je 0x417c4b
mov ecx, esi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417c30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.004066d0
jmp 0x417c66
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 8
push eax
push 0x699d2c
call fcn.00456640
mov ecx, dword [ebp - 0x44]
add esp, 8
cmp ecx, 8
jb 0x417cb1
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417ca7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417cff
push ecx
push edx
call fcn.005a242d
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
test edi, edi
je 0x417cd7
test esi, esi
je 0x417cd7
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebx
mov eax, 0x699d2c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a1c7e
mov esp, ebp
pop ebp
ret 4
call fcn.005a7b3f
call fcn.005a7b3f
int3