Function at 0x447070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457150
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x668
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
lea edx, [ebp - 0x66c]
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov ecx, ebx
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x568], eax
cmp eax, ebx
je 0x447108
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], ebx
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x460dc4
lea eax, [ebp - 0x66c]
push eax
call fcn.00449570
test eax, eax
je 0x4472fb
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x66c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x568], esi
cmp esi, ebx
jne 0x4472ae
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x55c]
push eax
push 0
push 0
lea ecx, [ebp - 0x66c]
push ecx
call fcn.0044c925
add esp, 0x14
lea edi, [ebp - 0x118]
lea edx, [ebp - 0x55c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x55c]
mov dword [ebp - 0x674], edx
lea edx, [ebp - 0x66c]
mov edi, dword [0x47742c]
mov ecx, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x674]
mov edi, eax
or ebx, 0xffffffff
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x568], eax
cmp eax, ebx
je 0x44722a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x568], ebx
jmp 0x44727e
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x45c]
push ecx
push 0x104
push 0
lea edx, [ebp - 0x55c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x447378
lea edi, [ebp - 0x45c]
lea edx, [ebp - 0x66c]
mov ecx, ebx
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x66c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x568], esi
cmp esi, ebx
jne 0x4472ae
mov dword [ebp - 4], ebx
jmp 0x447524
push 0
push 0
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x564]
push edx
push 0x104
lea eax, [ebp - 0x66c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x568], ebx
cmp dword [ebp - 0x564], 0x104
je 0x4472fb
mov dword [ebp - 4], ebx
jmp 0x447524
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x55c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
lea ecx, [ebp - 0x66c]
push ecx
call fcn.0044c925
add esp, 0x14
lea edi, [ebp - 0x118]
lea edx, [ebp - 0x55c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp - 0x218]
test al, al
je 0x4473c5
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x66c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x568], eax
cmp eax, ebx
jne 0x447380
mov dword [ebp - 4], ebx
jmp 0x447524
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edi, [ebp - 0x66c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], ebx
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x55c]
mov dword [ebp - 0x678], edx
lea edx, [ebp - 0x66c]
mov edi, dword [0x47742c]
mov ecx, ebx
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x678]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
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, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x66c]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call ebx
mov dword [ebp - 0x568], eax
cmp eax, 0xffffffff
je 0x447491
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edi, [ebp - 0x66c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x560]
push ecx
lea edx, [ebp - 0x45c]
push edx
push 0x104
push 0
lea eax, [ebp - 0x55c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x44751d
lea edi, [ebp - 0x45c]
lea edx, [ebp - 0x66c]
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x66c]
push edx
call ebx
mov dword [ebp - 0x568], eax
cmp eax, 0xffffffff
je 0x44751d
jmp 0x447447
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4