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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push esi
push 0xbd9
call fcn.0042bd50
mov eax, dword [0x455b38]
xor esi, esi
mov dword [eax + 0x10], esi
mov ecx, dword [0x455b38]
mov dword [ecx + 0xc], esi
mov edx, dword [0x455b38]
mov dword [edx + 0x20], esi
mov eax, dword [0x455b38]
mov dword [eax + 0x24], esi
mov ecx, dword [0x452f2c]
mov edx, dword [ecx]
push edx
call fcn.004344c0
add esp, 8
test al, al
jne 0x434cdc
push ebx
push edi
mov ecx, 0x73
xor eax, eax
lea edi, [ebp - 0x1d8]
mov edx, dword [0x455b38]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7380
xor eax, eax
lea edi, [edx + 0x182e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x452f2c]
mov ecx, dword [eax]
mov eax, dword [0x455b38]
push ecx
mov edx, dword [eax + 0x1e633]
add eax, 0x182e
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [0x452f2c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
mov edx, dword [0x455b38]
mov dword [edx + 0x18], eax
lea eax, [ebp - 0x1d8]
push eax
mov eax, dword [0x455b38]
mov ecx, dword [eax + 0x1e633]
mov edx, dword [eax + 0xc]
push ecx
add eax, 0x182e
push edx
push eax
call fcn.004347b0
add esp, 0x24
test eax, eax
je 0x434c8e
mov eax, dword [0x455b38]
cmp word [eax + 0x1e631], si
jbe 0x434c82
xor ebx, ebx
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp word [edx], 1
jne 0x434c22
mov edx, dword [eax + 0x20]
xor ebx, ebx
inc edx
lea edi, [esi + 1]
mov dword [eax + 0x20], edx
mov ecx, dword [0x455b38]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x1e633]
mov bx, word [ecx + 0x2c]
imul eax, edx
imul ebx, edi
add ebx, eax
push ebx
mov ebx, dword [ebp - 4]
add eax, ebx
push eax
push esi
push edx
push 0xc05
call fcn.0042bf20
mov eax, dword [0x455b38]
mov ecx, dword [eax + 0x1e633]
add eax, 0x182e
push ecx
push esi
push eax
call fcn.004348c0
add esp, 0x20
jmp 0x434c56
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x1e633]
mov dword [ebp - 4], edx
imul ecx, edx
xor edx, edx
lea edi, [esi + 1]
mov dx, word [eax + 0x2c]
lea eax, [ebx + ecx]
imul edx, edi
add edx, ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push esi
push ecx
push 0xc04
call fcn.0042bf20
add esp, 0x14
mov eax, dword [0x455b38]
mov esi, edi
mov edi, dword [ebp - 8]
xor edx, edx
mov dx, word [eax + 0x1e631]
add edi, 2
add ebx, 0x200
cmp esi, edx
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jl 0x434bc2
xor esi, esi
mov ecx, dword [0x452f2c]
mov edx, dword [ecx + 4]
push edx
jmp 0x434c9d
mov edx, dword [0x452f2c]
mov eax, dword [edx + 4]
push eax
mov eax, dword [0x455b38]
mov ecx, dword [eax + 0x1e633]
add eax, 0x182e
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [0x455b38]
add esp, 0x10
mov ebx, dword [eax + 0xc]
inc ebx
mov dword [eax + 0xc], ebx
mov edx, dword [0x452f2c]
mov eax, dword [edx]
push eax
call fcn.004344c0
add esp, 4
test al, al
je 0x434b13
pop edi
pop ebx
push 0xbd3
call fcn.0042bd50
mov eax, dword [0x455b38]
add esp, 4
cmp dword [eax + 0xc], esi
jne 0x434d0a
push 0xbd4
call fcn.0042bd50
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x20]
cmp eax, esi
jne 0x434d20
push 0xbd5
call fcn.0042bd50
add esp, 4
jmp 0x434d6f
push eax
push 0xbd6
call fcn.0042bdd0
mov ecx, dword [0x455b38]
mov eax, dword [ecx + 0x24]
lea edx, [eax + 1]
shr edx, 1
push edx
push eax
push 0xbd7
call fcn.0042be10
mov ecx, dword [0x455b38]
xor edx, edx
push 0x441854
mov eax, dword [ecx + 0x24]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
div dword [ecx + 0x20]
push eax
push 0xbd8
call fcn.0042be50
add esp, 0x20
mov eax, dword [0x452f2c]
mov ecx, dword [eax + 4]
push ecx
call fcn.004345c0
add esp, 4
cmp eax, 1
jne 0x434d8a
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x452f2c]
push esi
add edx, 4
push esi
push edx
call fcn.00428d50
mov eax, dword [0x455b38]
mov edx, dword [0x452f2c]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__chsize]
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret