Function at 0x472630
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1030
call fcn.004c7c20
mov eax, dword [0x51501c]
xor eax, esp
mov dword [esp + 0x102c], eax
mov eax, dword [esp + 0x1034]
push ebx
push ebp
mov ebp, dword [esp + 0x1044]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1044]
push edi
xor edi, edi
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0xa7
call dword [sym.imp.MSVCR80.dll_getc]
mov esi, dword [sym.imp.MSVCR80.dll_ftell]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x472b4c
cmp ebx, 0xa7
jne 0x4729bc
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR80.dll_getc]
mov ebx, eax
lea eax, [ebx - 0xa2]
add esp, 4
cmp eax, 5
ja case.default.0x4726bd
jmp dword [eax*4 + 0x472cbc]
cmp dword [0x53b810], 1
mov dword [esp + 0x14], 0xa6
jle 0x472b2b
push ebp
call esi
mov edx, dword [esp + 0x14]
add esp, 4
add eax, 1
push eax
push edx
call esi
add esp, 4
lea eax, [eax + edi + 1]
push eax
push 0x4eee0c
jmp 0x47272c
cmp dword [0x53b810], 1
mov dword [esp + 0x14], 0xa5
jle 0x472b2b
push ebp
call esi
mov edx, dword [esp + 0x14]
add esp, 4
add eax, 1
push eax
push edx
call esi
add esp, 4
lea eax, [eax + edi + 1]
push eax
push str.ecE__f5Q
mov ecx, dword [0x53c238]
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
jmp 0x472b2b
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 0xa4
call fcn.00472580
cmp dword [0x53b810], 1
mov ebx, eax
jle 0x47278c
push ebx
push ebp
call esi
mov edx, dword [esp + 0x18]
add esp, 4
add eax, 1
push eax
push edx
call esi
mov ecx, dword [0x53c238]
add esp, 4
lea eax, [eax + edi + 1]
push eax
push 0x4eed94
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
mov eax, dword [esp + 0x10]
push 1
lea edx, [ebx + edi]
push edx
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x472b9b
xor edi, edi
jmp 0x472b2b
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 0xa3
call fcn.00472580
cmp dword [0x53b810], 1
mov ebx, eax
jle 0x4727f9
push ebx
push ebp
call esi
mov ecx, dword [esp + 0x18]
add esp, 4
add eax, 1
push eax
push ecx
call esi
add esp, 4
lea edx, [eax + edi + 1]
mov eax, dword [0x53c238]
push edx
push 0x4eed80
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
test edi, edi
jle 0x472818
mov ecx, dword [esp + 0x10]
push 1
push edi
push ecx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x472bcc
xor edi, edi
cmp ebx, 0x1000
jle 0x472868
mov edx, dword [esp + 0x10]
push edx
push 0x1000
lea eax, [esp + 0x44]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, 0x1000
jne 0x472bfc
push ebp
push eax
lea ecx, [esp + 0x44]
push 1
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, 0x1000
jne 0x472c2b
sub ebx, eax
cmp ebx, eax
jg 0x472820
test ebx, ebx
jle 0x472b2b
mov edx, dword [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x44]
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x472c5a
push ebp
push ebx
lea ecx, [esp + 0x44]
push 1
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, ebx
je 0x472b2b
push 0x4eeec8
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
push 0x500ba8
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 8
call fcn.004c7af0
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 0xa2
call fcn.00472580
cmp dword [0x53b810], 1
mov ebx, eax
jle 0x472922
push ebx
push ebp
call esi
mov edx, dword [esp + 0x18]
add esp, 4
add eax, 1
push eax
push edx
call esi
mov ecx, dword [0x53c238]
add esp, 4
lea eax, [eax + edi + 1]
push eax
push 0x4eeda8
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
mov eax, dword [esp + 0x10]
mov edx, edi
push 1
sub edx, ebx
push edx
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x472c89
xor edi, edi
jmp 0x472b2b
cmp dword [0x53b810], 2
jle 0x4729bc
push ebp
call esi
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, 1
push eax
push ecx
call esi
add esp, 4
lea edx, [eax + edi + 1]
mov eax, dword [0x53c238]
push edx
push 0x4eef20
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
jmp 0x4729bc
cmp dword [0x53b810], 2
jle 0x4729b4
push ebp
call esi
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, 1
push eax
push ecx
call esi
add esp, 4
lea edx, [eax + edi + 1]
mov eax, dword [0x53c238]
push edx
push 0x4eef34
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
sub eax, 0xa5
je 0x472a86
sub eax, 1
jne 0x472b2b
cmp dword [esp + 0x1c], eax
je 0x472a27
push ebp
push 0xa7
call dword [sym.imp.MSVCR80.dll_putc]
add esp, 8
add edi, 1
cmp dword [0x53b810], 2
jle 0x472a27
push 0xa7
push ebp
call esi
mov ecx, dword [esp + 0x18]
add esp, 4
add eax, 1
push eax
push ecx
call esi
add esp, 4
lea edx, [eax + edi + 1]
mov eax, dword [0x53c238]
push edx
push 0x4eef48
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
push ebp
push ebx
call dword [sym.imp.MSVCR80.dll_putc]
add esp, 8
add edi, 1
cmp dword [0x53b810], 2
jle 0x472b2b
lea ecx, [ebx - 0x20]
cmp ecx, 0x5f
mov al, bl
jbe 0x472a4e
mov al, 0x20
movsx edx, al
push edx
push ebx
push ebp
call esi
add eax, 1
add esp, 4
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov edx, dword [0x53c238]
add esp, 4
lea ecx, [eax + edi + 1]
push ecx
push 0x4eef60
push edx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x18
jmp 0x472b2b
cmp dword [esp + 0x1c], 0
je 0x472ad8
cmp dword [0x53b810], 2
jle 0x472ac9
push 0xa7
push ebp
call esi
add eax, 1
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push eax
call esi
mov edx, dword [0x53c238]
add esp, 4
lea ecx, [eax + edi + 1]
push ecx
push 0x4eef48
push edx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x14
push ebp
push 0xa7
call dword [sym.imp.MSVCR80.dll_putc]
add esp, 8
cmp dword [0x53b810], 2
jle 0x472b20
lea eax, [ebx - 0x20]
cmp eax, 0x5f
mov al, bl
jbe 0x472aed
mov al, 0x20
movsx ecx, al
push ecx
push ebx
push ebp
call esi
mov edx, dword [esp + 0x1c]
add esp, 4
add eax, 1
push eax
push edx
call esi
mov ecx, dword [0x53c238]
add esp, 4
lea eax, [eax + edi + 1]
push eax
push 0x4eef60
push ecx
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x18
push ebp
push ebx
call dword [sym.imp.MSVCR80.dll_putc]
add esp, 8
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCR80.dll_getc]
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
jne 0x472692
cmp dword [0x53b810], 1
jle 0x472b82
push ebp
call esi
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, 1
push eax
push ecx
call esi
add esp, 4
lea edx, [eax + edi + 1]
mov eax, dword [0x53c238]
push edx
push 0x4eef78
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
mov ecx, dword [esp + 0x103c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459ea4
add esp, 0x1030
ret
push edi
push ebx
push 0x4eee3c
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
push 0x500ba8
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 5
call fcn.004c7af0
push edi
push 0x4eee74
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0xc
push 0x500ba8
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 5
call fcn.004c7af0
push 0x4eeea8
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
push 0x500ba8
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 7
call fcn.004c7af0
push 0x4eeec8
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
push 0x500ba8
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 8
call fcn.004c7af0
push 0x4eeea8
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
push 0x500ba8
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 7
call fcn.004c7af0
push ebx
push edi
push 0x4eeee4
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 0x10
push 0x500ba8
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 5
call fcn.004c7af0
mov edi, edi
xlatb
sub byte [edi], al
scasd eax, dword es:[edi]
daa
inc edi
add byte [ecx + 0x27], al
inc edi
add cl, bh
inc edi
add ah, al
inc edi
add byte [esi + 0x29], al
inc edi
add ah, cl
int3