Function at 0x450ba0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2714
call fcn.00461830
push ebx
mov ebx, dword [esp + 0x2720]
push ebp
push esi
push edi
mov ecx, 0xe6
xor eax, eax
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2738]
mov ecx, dword [esp + 0x273c]
lea edx, [esp + 0x1c]
xor edi, edi
push edx
push ebx
mov dword [esp + 0x164], 0x898a
mov dword [esp + 0x16c], eax
mov dword [esp + 0x170], ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x450c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x160], eax
mov dword [esp + 0x10], edi
jmp 0x45143c
cmp esi, edi
je 0x450c2e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x2728]
mov ecx, ebp
call fcn.00424270
test eax, eax
jne 0x450c51
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
mov eax, dword [esp + 0x2730]
mov ecx, 0x50
lea esi, [esp + 0x1c]
lea edi, [esp + 0x270]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x17e0]
mov ecx, 0x50
add edi, 0x120
lea esi, [esp + 0x1c]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x450d32
mov ecx, dword [esp + 0x2734]
mov dl, byte [ebx]
mov eax, ebx
mov cl, byte [ecx]
cmp cl, dl
jne 0x450cb8
mov edx, dword [esp + 0x2734]
sub edx, ebx
test cl, cl
je 0x450cb8
cmp byte [eax], 0
je 0x450ccc
mov cl, byte [edx + eax + 1]
mov bl, byte [eax + 1]
inc eax
cmp cl, bl
je 0x450ca3
cmp byte [eax], 0
je 0x450ccc
lea edx, [esp + 0x16c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [esp + 0x1c], 0x10
jne 0x450d32
lea eax, [esp + 0x48]
lea ecx, [esp + 0x16c]
push eax
push ecx
call fcn.00462670
add esp, 8
test eax, eax
je 0x450d32
lea edx, [esp + 0x16c]
push 0x5909e8
push edx
call fcn.00462670
add esp, 8
test eax, eax
je 0x450d32
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x16b]
lea eax, [esp + eax + 0x16b]
cmp cl, 0x5c
je 0x450d2f
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x450d26
mov byte [eax], 0
lea ecx, [esp + 0x4f4]
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.004345f0
mov ecx, dword [esp + 0x2740]
mov edx, dword [esp + 0x2744]
add esp, 8
lea eax, [esp + 0x4f4]
push eax
push ecx
push edx
lea eax, [esp + 0x604]
push 0x596954
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 0x17e0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
lea ecx, [esp + 0x5f8]
mov eax, dword [edx]
xor esi, esi
push ecx
push esi
push 0x659
push eax
call ebx
mov edx, dword [ebp + 0x17e0]
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0x378], ecx
mov dword [edx + 0x37c], esi
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x450dcc
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 0x17e0]
sub ecx, eax
mov dword [edx + 0x378], ecx
mov dword [edx + 0x37c], esi
mov eax, dword [ebp + 0x17e0]
push esi
push esi
push 0x659
mov dword [eax + 0x380], esi
mov dword [eax + 0x384], esi
mov ecx, dword [ebp + 0x17e0]
mov edx, dword [ecx]
push edx
call ebx
mov eax, dword [ebp + 0x17e0]
push esi
mov ecx, dword [eax + 0x26c]
mov dword [esp + 0x4f4], ecx
mov ecx, ebp
call fcn.00424430
lea edx, [esp + 0x15c]
push 0x398
push edx
mov ecx, ebp
call fcn.00424290
test eax, eax
jne 0x450e34
mov dword [esp + 0x10], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
mov eax, dword [ebp + 0x6c50]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp eax, esi
jne 0x450e7a
mov ecx, ebp
call fcn.00424270
test eax, eax
je 0x450f12
push 0x14
call edi
mov eax, dword [ebp + 0x17e0]
mov ecx, esi
inc esi
cmp ecx, dword [eax + 0x598]
jg 0x450f12
mov eax, dword [ebp + 0x6c50]
test eax, eax
je 0x450e46
xor esi, esi
cmp dword [ebp + 0x6c58], esi
je 0x450e93
mov dword [esp + 0x10], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
mov eax, dword [ebp + 0x69cc]
cmp eax, esi
je 0x450fa9
cmp eax, 0xb7
mov dword [esp + 0x160], eax
je 0x450f29
cmp eax, 0x50
je 0x450f29
mov edx, dword [esp + 0x2738]
mov ecx, dword [esp + 0x273c]
cmp ecx, edx
mov dword [esp + 0x160], eax
jae 0x450efa
mov ecx, dword [ebp + 0x1c]
lea eax, [esp + 0x15c]
push eax
push 0xfffffc18
push 0x41e
push ecx
call ebx
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x2714
ret
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x15c]
push edx
push 0xfffffc0e
push 0x41e
push eax
call ebx
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
mov ecx, dword [ebp + 0x17e0]
cmp dword [ecx + 0x26c], esi
jne 0x450fa9
mov eax, dword [ebp + 0x1c]
lea edx, [ebp + 0x69c8]
push edx
push 0xfffffbf8
push 0x41e
push eax
call ebx
mov ecx, dword [ebp + 0x17e0]
mov dword [ecx + 0x26c], eax
mov edx, dword [ebp + 0x17e0]
mov ecx, dword [esp + 0x273c]
mov eax, dword [edx + 0x26c]
mov edx, dword [esp + 0x2738]
mov dword [esp + 0x4f0], eax
mov eax, dword [esp + 0x2734]
push ecx
mov ecx, dword [esp + 0x2734]
push edx
mov edx, dword [esp + 0x2734]
push eax
push ecx
push edx
push ebp
call fcn.00450ba0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
mov ecx, dword [ebp + 0x17e0]
mov eax, dword [ecx + 0x26c]
cmp eax, 0x26c0
je 0x450fee
cmp eax, 0x26d4
je 0x450fc9
mov dword [ecx + 0x26c], esi
cmp eax, 0x26ca
je 0x450fd7
cmp eax, 0x26d4
jne 0x450fee
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
cmp dword [ebp + 0x6c54], esi
jne 0x451007
mov dword [esp + 0x10], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
test byte [esp + 0x1c], 0x10
je 0x451025
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret
xor esi, esi
mov ecx, 0x80a
push esi
xor eax, eax
lea edi, [esp + 0x700]
push esi
push 3
push esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x273c]
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x718], 0x899e
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x4510a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov dword [esp + 0x160], eax
jne 0x451080
mov dword [esp + 0x160], 2
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x15c]
push ecx
push 0xfffffc0e
push 0x41e
push edx
call ebx
mov dword [ebp + 0x6c54], esi
jmp 0x45142e
mov eax, dword [ebp + 0x17e0]
mov edi, 0x2000
cmp dword [eax + 0x5a4], esi
je 0x4510cd
mov esi, edi
sub esi, 8
mov ecx, ebp
push esi
call fcn.0041f0c0
mov edi, eax
cmp edi, 0x2000
jae 0x4510b8
xor esi, esi
mov ecx, ebp
push esi
mov dword [esp + 0x18], esi
call fcn.00424430
push esi
push esi
push esi
call fcn.0043daa0
add esp, 0xc
mov dword [esp + 0x720], eax
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x6c58], esi
jne 0x45142e
cmp dword [ebp + 0x69cc], esi
jne 0x451289
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push esi
push ecx
lea edx, [esp + 0x72c]
push edi
push edx
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4513ea
mov ecx, dword [ebp + 0x17e0]
cmp dword [ecx + 0x260], esi
jne 0x45142e
mov eax, dword [esp + 0x14]
cmp eax, esi
mov dword [esp + 0x700], eax
je 0x451279
push eax
mov eax, dword [esp + 0x724]
lea edx, [esp + 0x728]
mov dword [esp + 0x71c], esi
push edx
push eax
call fcn.0043daa0
mov dword [esp + 0x72c], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, esi
je 0x4511be
mov ecx, dword [ebp + 0x17e0]
cmp dword [ecx + 0x5a4], esi
je 0x4511be
push eax
mov ecx, ebp
call fcn.0041f0c0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x710]
lea ecx, [esp + 0x724]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x718], edx
call fcn.0041ef60
mov ecx, dword [ebp + 0x5a74]
push esi
lea edx, [esp + 0x700]
push 0x2028
push edx
mov dword [esp + 0x710], esi
call fcn.00442430
test eax, eax
je 0x4512d5
mov eax, dword [ebp + 0x17e0]
mov edx, dword [eax + 0x380]
add edx, 0x1fc0
mov dword [eax + 0x380], edx
mov ecx, dword [eax + 0x384]
adc ecx, esi
mov dword [eax + 0x384], ecx
mov eax, dword [ebp + 0x17e0]
mov ecx, dword [eax + 0x37c]
mov edx, dword [eax + 0x378]
push ecx
mov ecx, dword [eax + 0x384]
push edx
mov edx, dword [eax + 0x380]
push ecx
push edx
call fcn.00434560
add esp, 0x10
cmp eax, 0x64
mov dword [0x5a1ef4], eax
jle 0x45124a
mov eax, 0x64
mov dword [0x5a1ef4], eax
mov ecx, dword [ebp + 0x17e0]
cmp dword [ecx + 0x260], esi
jne 0x451264
push esi
push eax
mov eax, dword [ecx]
push 0x659
push eax
call ebx
cmp dword [esp + 0x718], esi
jne 0x4512e2
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4510ed
mov dword [esp + 0x718], 1
jmp 0x4511be
mov ecx, dword [ebp + 0x17e0]
mov edx, dword [ebp + 0x69cc]
push esi
push 0xc9
mov dword [ecx + 0x388], edx
mov eax, dword [ebp + 0x17e0]
push 0x659
mov ecx, dword [eax]
push ecx
call ebx
mov ebp, dword [ebp + 0x17e0]
push ebp
push 0xffffe19f
mov edx, dword [ebp + 4]
push 0x41e
push edx
call ebx
mov dword [esp + 0x10], 1
jmp 0x451432
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2714
ret
mov eax, dword [ebp + 0x6c50]
xor esi, esi
test eax, eax
jne 0x45131e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.00424270
test eax, eax
je 0x451373
push 0x14
call edi
mov eax, dword [ebp + 0x17e0]
mov ecx, esi
inc esi
cmp ecx, dword [eax + 0x598]
jg 0x451373
mov eax, dword [ebp + 0x6c50]
test eax, eax
je 0x4512f4
mov eax, dword [ebp + 0x69cc]
test eax, eax
je 0x451432
cmp eax, 0x6c6b1
jne 0x451395
mov edx, dword [ebp + 0x17e0]
push 0
push 0xc9
push 0x659
mov eax, dword [edx]
push eax
call ebx
mov ecx, dword [esp + 0x2738]
mov eax, dword [esp + 0x273c]
mov ebp, dword [ebp + 0x17e0]
cmp eax, ecx
push ebp
jae 0x451380
push 0xffffe5f5
mov edx, dword [ebp + 4]
push 0x41e
push edx
call ebx
mov dword [esp + 0x10], 0
jmp 0x451432
mov eax, dword [ebp + 4]
push 0xffffe5f6
push 0x41e
push eax
call ebx
jmp 0x451432
mov ecx, dword [ebp + 0x17e0]
push 0
push 0xc9
push 0x659
mov dword [ecx + 0x388], eax
mov edx, dword [ebp + 0x17e0]
mov eax, dword [edx]
push eax
call ebx
mov ecx, dword [esp + 0x2738]
mov eax, dword [esp + 0x273c]
mov ebp, dword [ebp + 0x17e0]
cmp eax, ecx
push ebp
jae 0x4513d8
push 0xffffe19f
jmp 0x451368
mov eax, dword [ebp + 4]
push 0xffffe1a0
push 0x41e
push eax
call ebx
jmp 0x451432
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov dword [esp + 0x704], eax
jne 0x451406
mov dword [esp + 0x704], 0x1e
mov ecx, ebp
call fcn.00424270
test eax, eax
je 0x45142e
push esi
lea ecx, [esp + 0x700]
push 0x2028
push ecx
mov ecx, dword [ebp + 0x5a74]
call fcn.00442430
test eax, eax
jne 0x451432
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x451443
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2714
ret