Function at 0x5586f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x46
add esp, 0xfffff004
push eax
dec eax
jne 0x558701
mov eax, dword [ebp - 4]
add esp, 0xfffff480
lea eax, [ebp - 0x4696c]
mov dword [ebp - 0x20], eax
push dword [ebp + 8]
lea edx, [ebp - 0x46b74]
push edx
call fcn.0066ce08
add esp, 8
lea ecx, [ebp - 0x46b74]
push ecx
call fcn.004066c4
pop ecx
lea eax, [ebp - 0x46b74]
push eax
lea edx, [ebp - 0x46a70]
push edx
call fcn.0066ce08
add esp, 8
push 0x2e
lea ecx, [ebp - 0x46a70]
push ecx
call fcn.0066cf51
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x558774
xor eax, eax
jmp 0x558a26
push str..daa
push dword [ebp - 0x2c]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x55878f
xor eax, eax
jmp 0x558a26
push 0x81a2a1
push dword [ebp - 0x2c]
call fcn.0066ce08
add esp, 8
lea edx, [ebp - 0x46b74]
push edx
call fcn.0045dbc4
pop ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xffffffff
jne 0x5587be
xor eax, eax
jmp 0x558a26
push 0
lea edx, [ebp - 0x46b74]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.005575f4
add esp, 0x10
test eax, eax
je 0x5587e8
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x558a26
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 0x558826
push dword [ebp - 0x20]
call fcn.005568e8
pop ecx
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x558a26
call fcn.00404b70
call fcn.00441290
lea edx, [ebp - 0x46a70]
push edx
call fcn.004413f0
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 [0x6fb15c], ecx
mov dword [0x833f58], 0
mov dword [0x833f5c], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x11c]
xor edx, edx
mov dword [0x833f50], eax
mov dword [0x833f54], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x5589cf
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 - 0x20]
mov ecx, dword [edx + 0x174]
mov dword [ebp - 0x18], ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x1dc]
push dword [ebp - 0x20]
call fcn.00552255
add esp, 0xc
test eax, eax
jne 0x55891f
push dword [ebp - 0x34]
call fcn.0050d0b8
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 - 0x20]
mov ecx, dword [edx + 0x174]
mov dword [eax + 0x10], ecx
push 2
push dword [ebp - 0x34]
call fcn.0050d2c8
add esp, 8
dec eax
je 0x558926
mov dword [ebp - 8], 1
jmp 0x558926
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5589cc
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x18], ecx
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
push dword [edx + 0x1e0]
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x30]
shr eax, 0xb
xor edx, edx
add dword [0x833f58], eax
adc dword [0x833f5c], edx
mov eax, dword [0x833f58]
mov edx, dword [0x833f5c]
mov dword [ebp - 0x46b7c], eax
sub edx, 0x80000000
mov dword [ebp - 0x46b78], edx
fild qword [ebp - 0x46b7c]
fadd qword [0x558a2c]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x46b84], eax
sub edx, 0x80000000
mov dword [ebp - 0x46b80], edx
fild qword [ebp - 0x46b84]
fadd qword [0x558a2c]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x5589f3
mov eax, dword [0x6fb15c]
test eax, eax
jne 0x5589f3
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x129]
cmp edx, eax
jb 0x55888b
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x20]
call fcn.005568e8
pop ecx
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
call fcn.00441378
call fcn.00404b84
mov edx, dword [ebp - 8]
test edx, edx
je 0x558a21
xor eax, eax
jmp 0x558a26
mov eax, 1
mov esp, ebp
pop ebp
ret