Function at 0x424f30
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x150c
call fcn.00430790
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x1524]
mov ecx, 0xe6
xor eax, eax
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1530]
mov ecx, dword [esp + 0x1534]
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], ecx
lea edx, [esp + 0x1c]
mov ecx, 0x40a
xor eax, eax
lea edi, [esp + 0x4f4]
xor esi, esi
push edx
rep stosd dword es:[edi], eax
push ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x164], 0x898a
mov dword [esp + 0x4fc], 0x899e
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, esi
je 0x424fbc
cmp edi, 0xffffffff
jne 0x424fd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov dword [esp + 0x160], eax
jne 0x424fd7
mov dword [esp + 0x10], esi
jmp 0x4254a2
cmp edi, esi
je 0x424fe7
cmp edi, 0xffffffff
je 0x424fe7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x1520]
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax]
test eax, eax
jne 0x425010
mov dword [ebp + 0x2054], esi
mov dword [esp + 0x10], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
mov ecx, 0x50
lea esi, [esp + 0x1c]
lea edi, [esp + 0x270]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, ebp
push edi
call fcn.0040e8d0
cmp dword [esp + 0x1528], edi
je 0x4250d6
mov edx, dword [esp + 0x152c]
mov eax, ebx
mov cl, byte [edx]
cmp cl, byte [ebx]
jne 0x42505c
sub edx, ebx
test cl, cl
je 0x42505c
cmp byte [eax], 0
je 0x425070
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0x42504a
cmp byte [eax], 0
je 0x425070
lea ecx, [esp + 0x16c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [esp + 0x1c], 0x10
jne 0x4250d6
lea edx, [esp + 0x48]
lea eax, [esp + 0x16c]
push edx
push eax
call fcn.00430de0
add esp, 8
test eax, eax
je 0x4250d6
lea ecx, [esp + 0x16c]
push 0x445344
push ecx
call fcn.00430de0
add esp, 8
test eax, eax
je 0x4250d6
lea edx, [esp + 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x16b]
lea eax, [esp + eax + 0x16b]
cmp cl, 0x5c
je 0x4250d3
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x4250ca
mov byte [eax], 0
mov eax, dword [ebp]
lea ecx, [esp + 0x15c]
push 0x398
push ecx
mov ecx, ebp
call dword [eax + 0xb4]
test eax, eax
jne 0x425109
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
mov eax, dword [ebp + 0x5168]
xor esi, esi
cmp eax, edi
jne 0x425145
cmp dword [ebp + 0x2054], edi
je 0x4251b7
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x4ee4], edi
jne 0x42513d
mov eax, dword [0x457460]
mov edx, esi
inc esi
cmp edx, eax
jg 0x4251b7
cmp dword [ebp + 0x5168], edi
je 0x425115
cmp dword [ebp + 0x5170], edi
je 0x42515e
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
mov eax, dword [ebp + 0x4ee4]
cmp eax, edi
je 0x4251af
cmp eax, 0xb7
je 0x425190
cmp eax, 0x50
je 0x425190
mov ecx, dword [ebp + 0x516c]
xor eax, eax
cmp ecx, edi
pop edi
setne al
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x150c
ret
cmp dword [ebp + 0x516c], edi
jne 0x4251c8
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
cmp dword [ebp + 0x516c], edi
jne 0x4251c8
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
test byte [esp + 0x1c], 0x10
je 0x4251e6
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
push edi
push edi
push 3
push edi
push 1
push accept
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4253e6
cmp eax, 0xffffffff
je 0x4253e6
push edi
push edi
push edi
call fcn.004174d0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [esp + 0x518], eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
cmp dword [ebp + 0x5170], edi
jne 0x42536c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push edi
push ecx
lea edx, [esp + 0x524]
push 0xfc0
push edx
push eax
call ebx
test eax, eax
je 0x425379
mov eax, dword [esp + 0x18]
mov edx, eax
cmp eax, edi
mov dword [esp + 0x4f8], edx
je 0x42529e
mov edx, dword [esp + 0x518]
lea ecx, [esp + 0x51c]
push eax
push ecx
push edx
mov dword [esp + 0x51c], edi
call fcn.004174d0
mov edx, dword [esp + 0x504]
add esp, 0xc
mov dword [esp + 0x518], eax
jmp 0x4252a9
mov dword [esp + 0x510], 1
cmp dword [ebp + 0x561c], edi
je 0x425330
mov eax, dword [ebp + 0x5620]
cmp eax, 1
jne 0x4252f2
mov ecx, dword [ebp + 0x562c]
cmp ecx, edi
je 0x4252f2
push edx
call fcn.00419450
mov dword [esp + 0x508], eax
mov eax, dword [esp + 0x4f8]
push 1
lea ecx, [esp + 0x520]
push eax
push ecx
mov ecx, dword [ebp + 0x562c]
call fcn.004189e0
jmp 0x425330
cmp eax, edi
jne 0x425330
mov ecx, dword [ebp + 0x5628]
cmp ecx, edi
je 0x425330
push edx
call fcn.00419450
mov edx, dword [esp + 0x4f8]
mov dword [esp + 0x508], eax
lea eax, [esp + 0x51c]
push edx
lea ecx, [esp + 0x520]
push eax
push ecx
mov ecx, dword [ebp + 0x5628]
call fcn.00417fa0
mov edx, dword [ebp]
lea eax, [esp + 0x4f4]
push 0x1028
push eax
mov ecx, ebp
mov dword [esp + 0x504], edi
call dword [edx + 0xb4]
test eax, eax
je 0x42540d
cmp dword [esp + 0x510], edi
jne 0x425498
push edi
call esi
jmp 0x425226
mov dword [esp + 0x10], 1
jmp 0x425498
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esp + 0x4fc], eax
jne 0x425395
mov dword [esp + 0x4fc], 0x1e
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
jne 0x4253af
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425498
push edi
mov ecx, ebp
call fcn.0040e8d0
mov eax, dword [ebp]
lea ecx, [esp + 0x4f4]
push 0x1028
push ecx
mov ecx, ebp
call dword [eax + 0xb4]
test eax, eax
jne 0x425498
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425498
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esp + 0x4fc], eax
jne 0x425402
mov dword [esp + 0x4fc], 2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
jne 0x425419
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425498
push edi
mov ecx, ebp
call fcn.0040e8d0
mov eax, dword [ebp]
lea ecx, [esp + 0x4f4]
push 0x1028
push ecx
mov ecx, ebp
call dword [eax + 0xb4]
test eax, eax
jne 0x425449
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425498
mov eax, dword [ebp + 0x5168]
xor esi, esi
cmp eax, edi
jne 0x425479
cmp dword [ebp + 0x2054], edi
je 0x425413
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x457460]
mov edx, esi
inc esi
cmp edx, eax
jg 0x425413
cmp dword [ebp + 0x5168], edi
je 0x425455
cmp dword [ebp + 0x5170], edi
je 0x425487
mov dword [esp + 0x10], edi
jmp 0x425498
mov ecx, dword [ebp + 0x516c]
xor eax, eax
cmp ecx, edi
setne al
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4254a9
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret