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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi + 0x2c], 0
mov dword [ebp - 4], 0
jne 0x428f06
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x28]
mov edx, dword [0x4a370c]
mov eax, dword [0x49ec74]
mov esi, dword [eax + 0x15]
push 0
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x4a370c]
push eax
push 1
push 0x18
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
test eax, eax
je 0x42919a
mov ebx, dword [ebp + 0x28]
mov ecx, dword [0x4a370c]
xor edx, edx
mov dx, word [esi + 1]
push ecx
push 1
lea eax, [esi + 0x18]
sub edx, 0x18
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x42919a
movsx eax, byte [esi]
dec eax
cmp eax, 0x13
ja case.0x428f7d.7
xor ecx, ecx
mov cl, byte [eax + 0x4291e0]
jmp dword [ecx*4 + 0x4291c4]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00428cf0
xor ecx, ecx
mov cx, word [esi + 1]
push ebx
push 1
push ecx
jmp 0x42909b
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00428d50
xor ecx, ecx
mov cx, word [esi + 1]
push ebx
push 1
push ecx
jmp 0x42909b
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00428e80
xor ecx, ecx
mov cx, word [esi + 1]
push ebx
push 1
push ecx
jmp 0x42909b
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [edi + 0x20]
push eax
lea ecx, [esi + 0x1a]
push ecx
call fcn.00428e80
xor edx, edx
mov dx, word [esi + 1]
push ebx
push 1
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x34
cmp eax, 1
jne 0x4291b6
jmp case.0x428f7d.7
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [edi + 0x20]
push ecx
push esi
call fcn.00428e40
xor edx, edx
mov dx, word [esi + 1]
push ebx
push 1
push edx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x34
cmp eax, 1
jne 0x4291b6
jmp case.0x428f7d.7
lea eax, [ebp + 8]
push eax
push esi
call fcn.00429f70
add esp, 8
test eax, eax
je 0x4291bd
push 0x4c
lea ecx, [ebp - 0x50]
push esi
push ecx
call sub.MSVCRT.dll_memcpy
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004293e0
mov edx, dword [0x4a370c]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
fld dword [ebp - 0x10]
fadd qword [ebp + 0x20]
mov ecx, dword [ebp + 8]
add esp, 0x34
push ebx
sub esp, 8
fstp qword [esp]
sub esp, 8
fld dword [ebp - 8]
sub esp, 8
fmul qword [ebp + 0x18]
mov dword [ebp + 0x28], eax
lea eax, [ebp - 0x18]
fstp qword [esp + 8]
fld dword [ebp - 0xc]
fmul qword [ebp + 0x10]
fstp qword [esp]
push eax
push ecx
call fcn.00428ee0
push 0x4c
lea edx, [ebp - 0x50]
push edx
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x28]
mov ecx, dword [0x4a370c]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x3c
mov eax, dword [ebp - 4]
xor edx, edx
mov dx, word [esi + 1]
xor ecx, ecx
mov cx, word [edi + 0x2c]
add eax, edx
mov dword [ebp - 4], eax
cmp ecx, eax
jle 0x4291ad
mov edx, dword [0x4a370c]
push edx
push 1
push 0x18
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jne 0x428f40
push 0x1cf
call fcn.00410630
push eax
call fcn.0040d270
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1d1
jmp 0x42919f
push 0x1ce
jmp 0x42919f