Function at 0x45ff90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x49e970]
push edi
xor edi, edi
push edi
push eax
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll_fseek]
lea ecx, [ebp - 8]
push ecx
push edi
push 1
call fcn.0044a5b0
add esp, 0x18
test eax, eax
je 0x460009
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jle 0x45fff3
mov eax, dword [eax + 0xd]
lea edx, [ebp - 0xc]
push edx
push 0
push eax
push 0xff
call fcn.0042db70
add esp, 0x10
test eax, eax
je 0x460209
mov eax, dword [ebp - 8]
add edi, dword [eax + 1]
lea ecx, [ebp - 8]
push ecx
push edi
push 1
call fcn.0044a5b0
add esp, 0xc
test eax, eax
jne 0x45ffc9
push esi
lea eax, [ebp - 4]
push eax
push 0x479b7e
push 0x479850
call fcn.004602b0
push esi
lea ecx, [ebp - 4]
push ecx
push 0x479ba0
push 0x479850
call fcn.004602b0
lea edx, [ebp - 0x24]
push edx
push 0x479850
push 0x49edec
push 0x4c8a00
call fcn.00412a40
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x479850
call fcn.004602b0
add esp, 0x40
lea edx, [ebp - 0x24]
push edx
push 0x479850
push 0x49ee14
push 0x4c8a00
call fcn.00412a40
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x479850
call fcn.004602b0
lea edx, [ebp - 0x24]
push edx
push 0x479850
push 0x49ee28
push 0x4c8a00
call fcn.00412a40
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x479850
call fcn.004602b0
add esp, 0x40
lea edx, [ebp - 0x24]
push edx
push 0x479850
push 0x49ee3c
push 0x4c8a00
call fcn.00412a40
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x479850
call fcn.004602b0
lea edx, [ebp - 0x24]
push edx
push 0x479a58
push 0x49ee00
push 0x4c8b20
call fcn.00412a40
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x479a58
call fcn.004602b0
mov al, byte [0x479bcc]
add esp, 0x40
test al, al
je 0x460148
lea edx, [ebp - 0x24]
push edx
push 0x479648
push 0x4c6c40
push 0x4c88e0
call fcn.00412a40
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x479648
call fcn.004602b0
add esp, 0x20
mov ecx, dword [ebp - 0xc]
test ecx, ecx
mov eax, dword [0x49e980]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jle 0x46027a
cmp byte [eax], 0xf
jne 0x460262
mov eax, dword [eax + 0xd]
lea edx, [ebp + 0xc]
push edx
push eax
push 0
call fcn.0044a5b0
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
add esp, 0xc
cmp cl, 0xf
jne 0x46025f
push esi
lea ecx, [ebp - 4]
push ecx
add eax, 0x690
push eax
push 0x479850
call fcn.004602b0
mov eax, dword [ebp + 0xc]
push esi
lea edx, [ebp - 4]
push edx
add eax, 0x69d
push eax
push 0x479850
call fcn.004602b0
mov edx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 4]
push ecx
add edx, 0x6aa
push edx
push 0x479850
call fcn.004602b0
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 4]
push eax
add ecx, 0x6b7
push ecx
push 0x479850
call fcn.004602b0
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0x69]
add esp, 0x40
cmp al, 0xd
jne 0x46025f
mov al, byte [ecx + 0x6a]
test al, 0x80
je 0x460224
mov eax, 0x20
xor edi, edi
mov ebx, eax
jmp 0x46023c
push ebx
push 1
lea edx, [ebp - 4]
push 4
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
not al
and eax, 0xff
and eax, 2
or eax, 0x10
shr eax, 1
xor edi, edi
mov ebx, eax
jmp 0x46023c
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 4]
push edx
lea eax, [edi + ecx + 0x270]
push eax
push 0x479954
call fcn.004602b0
add esp, 0x10
add edi, 0x21
dec ebx
jne 0x460239
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
inc ecx
add eax, 0x14
cmp ecx, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
jl 0x460162
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
lea ecx, [ebp - 4]
push 4
push ecx
call edi
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jle 0x4602a2
push ebx
push eax
push 0x111
push esi
call edi
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret