Function at 0x558c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x46
add esp, 0xfffff004
push eax
dec eax
jne 0x558c59
mov eax, dword [ebp - 4]
add esp, 0xfffff584
lea eax, [ebp - 0x4696c]
mov dword [ebp - 0x20], eax
push dword [ebp + 8]
lea edx, [ebp - 0x46a70]
push edx
call fcn.0066c9ec
add esp, 8
push 0x2e
lea ecx, [ebp - 0x46a70]
push ecx
call fcn.0066cb35
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x558ca9
xor eax, eax
jmp 0x559039
push str..uif
push dword [ebp - 0x2c]
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x558cc4
xor eax, eax
jmp 0x559039
push str..iso
push dword [ebp - 0x2c]
call fcn.0066c9ec
add esp, 8
push dword [ebp + 8]
call fcn.0045d8dc
pop ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
cmp edx, 0xffffffff
jne 0x558cef
xor eax, eax
jmp 0x559039
push 0
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.00558618
add esp, 0x10
test eax, eax
je 0x558d15
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x559039
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x46a70]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xffffffff
jne 0x558d53
push dword [ebp - 0x20]
call fcn.005564cc
pop ecx
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x559039
call fcn.00404a38
call fcn.00441118
lea edx, [ebp - 0x46a70]
push edx
call fcn.00441278
pop ecx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x4692c]
mov dword [ebp - 0x34], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [0x6f6920], ecx
mov dword [0x826584], 0
mov dword [0x826588], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x11c]
xor edx, edx
mov dword [0x82657c], eax
mov dword [0x826580], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x558fe2
mov eax, dword [ebp - 0xc]
shl eax, 5
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x1e8]
mov eax, dword [ecx + eax + 0x10]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
shl edx, 5
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x1e8]
mov edx, dword [eax + edx + 0x18]
mov ecx, dword [ebp - 0xc]
shl ecx, 5
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x1e8]
mov ecx, dword [eax + ecx + 0x14]
sub edx, ecx
inc edx
mov eax, dword [ebp - 0x20]
imul edx, dword [eax + 0x1b0]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0xc]
shl edx, 5
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x1e8]
mov dl, byte [eax + edx]
sub dl, 1
jb 0x558ed8
sub dl, 0x3f
je 0x558ef0
sub dl, 0x40
jne 0x558f3b
push 0
mov ecx, dword [ebp - 0xc]
shl ecx, 5
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x1e8]
push dword [edx + ecx + 0xc]
push dword [edx + ecx + 8]
mov edx, dword [ebp - 0x20]
push dword [edx + 0x108]
call fcn.0045d900
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push dword [ecx + 0x108]
push dword [ebp - 0x10]
push 1
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1dc]
call fcn.0045d9fc
add esp, 0x10
push dword [ebp - 0x34]
call fcn.0050cc9c
pop ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x1dc]
mov dword [edx], eax
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x1e0]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x10], edx
push 2
push dword [ebp - 0x34]
call fcn.0050ceac
add esp, 8
dec eax
jne 0x558ecf
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0x18]
cmp eax, edx
je 0x558f42
mov dword [ebp - 8], 1
jmp 0x558f42
push dword [ebp - 0x18]
push 0
mov ecx, dword [ebp - 0x20]
push dword [ecx + 0x1e0]
call fcn.0066c86c
add esp, 0xc
jmp 0x558f42
push 0
mov eax, dword [ebp - 0xc]
shl eax, 5
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x1e8]
push dword [ecx + eax + 0xc]
push dword [ecx + eax + 8]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x108]
call fcn.0045d900
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push dword [ecx + 0x108]
push dword [ebp - 0x18]
push 1
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1e0]
call fcn.0045d9fc
add esp, 0x10
jmp 0x558f42
mov dword [ebp - 8], 1
mov edx, dword [ebp - 8]
test edx, edx
jne 0x558fdf
push 0
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1e0]
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x30]
shr eax, 0xb
xor edx, edx
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x46a78], eax
sub edx, 0x80000000
mov dword [ebp - 0x46a74], edx
fild qword [ebp - 0x46a78]
fadd qword [0x559040]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x46a80], eax
sub edx, 0x80000000
mov dword [ebp - 0x46a7c], edx
fild qword [ebp - 0x46a80]
fadd qword [0x559040]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x559006
mov eax, dword [0x6f6920]
test eax, eax
jne 0x559006
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x129]
cmp edx, eax
jb 0x558db8
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x20]
call fcn.005564cc
pop ecx
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
call fcn.00441200
call fcn.00404a4c
mov edx, dword [ebp - 8]
test edx, edx
je 0x559034
xor eax, eax
jmp 0x559039
mov eax, 1
mov esp, ebp
pop ebp
ret