Function at 0x414710
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44dd46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x930
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x24]
mov eax, dword [ebp + 0x85c]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x858]
sub eax, esi
sub eax, 0xc
push 0
push ecx
push eax
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4147d3
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043b7dd
mov ecx, dword [ebp + 0xc]
mov ebx, eax
push ecx
call fcn.0043b7dd
add esp, 8
mov esi, eax
test ebx, ebx
je 0x4147d3
test esi, esi
je 0x4147d3
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x858]
xor edi, edi
lea eax, [esp + 0x18]
push edi
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
je 0x4147ee
push ebx
call fcn.0043b806
push esi
call fcn.0043b806
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x940]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x93c
ret
lea ecx, [esp + 0x10]
call fcn.00412b20
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x948], edi
push ecx
push esi
push ebx
lea ecx, [esp + 0x1c]
call fcn.00412d10
lea ecx, [esp + 0x228]
mov edi, eax
call fcn.00412df0
push 1
push 0x10
push str.ASPOIKDJDMCKJIOP
push edi
push esi
push ebx
lea ecx, [esp + 0x240]
mov byte [esp + 0x960], 1
call fcn.00412e30
test al, al
jne 0x414854
push ebx
call fcn.0043b806
push esi
call fcn.0043b806
add esp, 8
jmp 0x4149f3
push esi
call fcn.0043b806
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x10]
mov ecx, 0x107
mov edi, eax
lea esi, [edx + ebx - 0x41c]
add esp, 4
rep movsd dword es:[edi], dword [esi]
cmp dword [eax], 0x87321654
je 0x414889
push ebx
call fcn.0043b806
add esp, 4
jmp 0x4149f3
mov eax, dword [ebp + 0x2a8]
mov dword [ebp + 0x430], eax
lea ecx, [eax + eax*4]
lea esi, [eax + ecx*2]
shl esi, 2
test eax, eax
mov dword [esp + 0x14], esi
jle 0x4148fd
push esi
call fcn.0043b7dd
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp + 0x42c], edi
jne 0x4148cf
push ebx
mov dword [ebp + 0x430], eax
call fcn.0043b806
add esp, 4
jmp 0x4149f3
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x42c]
mov ecx, esi
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x2a0]
mov dword [ebp + 0x438], eax
lea ecx, [eax + eax*4]
lea edi, [eax + ecx*2]
shl edi, 3
test eax, eax
mov dword [esp + 0x1c], edi
jle 0x41498b
push edi
call fcn.0043b7dd
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp + 0x434], edx
jne 0x414959
push ebx
mov dword [ebp + 0x438], eax
call fcn.0043b806
mov eax, dword [ebp + 0x42c]
push eax
call fcn.0043b806
add esp, 8
mov dword [ebp + 0x42c], 0
jmp 0x4149f3
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esi, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebp + 0x434]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x2a4]
mov dword [ebp + 0x440], eax
lea edi, [eax + eax*4]
shl edi, 4
test eax, eax
mov dword [esp + 0x14], edi
jle 0x414a54
push edi
call fcn.0043b7dd
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp + 0x43c], edx
jne 0x414a20
push ebx
mov dword [ebp + 0x438], eax
call fcn.0043b806
mov eax, dword [ebp + 0x42c]
push eax
call fcn.0043b806
mov eax, dword [ebp + 0x434]
xor esi, esi
push eax
mov dword [ebp + 0x42c], esi
call fcn.0043b806
add esp, 0xc
mov dword [ebp + 0x434], esi
lea ecx, [esp + 0x228]
mov byte [esp + 0x948], 0
call fcn.00412e20
lea ecx, [esp + 0x10]
mov dword [esp + 0x948], 0xffffffff
call fcn.00412b50
jmp 0x4147d3
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x43c]
add esi, eax
mov edx, ecx
add esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.0043b806
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x12c]
push eax
push ecx
push 0
lea edx, [ebp + 0x754]
push 0
push edx
call fcn.00423b43
add esp, 0x18
lea eax, [ebp + 0x2d0]
lea ebx, [ebp + 0x650]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or ecx, 0xffffffff
lea edi, [ebp + 0x3d0]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x54c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x444]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NC.
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x948], al
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x228]
call fcn.00412e20
lea ecx, [esp + 0x10]
mov dword [esp + 0x948], 0xffffffff
call fcn.00412b50
mov eax, 1
jmp 0x4147d5