Function at 0x5582dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x46
add esp, 0xfffff004
push eax
dec eax
jne 0x5582e5
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.0066c9ec
add esp, 8
lea ecx, [ebp - 0x46b74]
push ecx
call fcn.0040658c
pop ecx
lea eax, [ebp - 0x46b74]
push eax
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 0x558358
xor eax, eax
jmp 0x55860a
push str..daa
push dword [ebp - 0x2c]
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x558373
xor eax, eax
jmp 0x55860a
push 0x80c8cd
push dword [ebp - 0x2c]
call fcn.0066c9ec
add esp, 8
lea edx, [ebp - 0x46b74]
push edx
call fcn.0045d8dc
pop ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xffffffff
jne 0x5583a2
xor eax, eax
jmp 0x55860a
push 0
lea edx, [ebp - 0x46b74]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.005571d8
add esp, 0x10
test eax, eax
je 0x5583cc
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x55860a
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 0x55840a
push dword [ebp - 0x20]
call fcn.005564cc
pop ecx
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x55860a
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 0x5585b3
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.00551e39
add esp, 0xc
test eax, eax
jne 0x558503
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 - 0x20]
mov ecx, dword [edx + 0x174]
mov dword [eax + 0x10], ecx
push 2
push dword [ebp - 0x34]
call fcn.0050ceac
add esp, 8
dec eax
je 0x55850a
mov dword [ebp - 8], 1
jmp 0x55850a
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5585b0
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 [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x46b7c], eax
sub edx, 0x80000000
mov dword [ebp - 0x46b78], edx
fild qword [ebp - 0x46b7c]
fadd qword [0x558610]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x46b84], eax
sub edx, 0x80000000
mov dword [ebp - 0x46b80], edx
fild qword [ebp - 0x46b84]
fadd qword [0x558610]
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 0x5585d7
mov eax, dword [0x6f6920]
test eax, eax
jne 0x5585d7
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x129]
cmp edx, eax
jb 0x55846f
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 0x558605
xor eax, eax
jmp 0x55860a
mov eax, 1
mov esp, ebp
pop ebp
ret