Function at 0x556a48
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x46
add esp, 0xfffff004
push eax
dec eax
jne 0x556a51
mov eax, dword [ebp - 4]
add esp, 0xfffff58c
lea eax, [ebp - 0x46964]
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
lea edx, [ebp - 0x46a68]
push edx
call fcn.0066ce08
add esp, 8
push 0x2e
lea ecx, [ebp - 0x46a68]
push ecx
call fcn.0066cf51
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x556aa1
xor eax, eax
jmp 0x556e0c
push 0x81a228
push dword [ebp - 0x28]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x556abc
xor eax, eax
jmp 0x556e0c
push 0x81a22d
push dword [ebp - 0x28]
call fcn.0066ce08
add esp, 8
push dword [ebp + 8]
call fcn.0045dbc4
pop ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
cmp edx, 0xffffffff
jne 0x556ae7
xor eax, eax
jmp 0x556e0c
push 0x46938
push 0
push dword [ebp - 0x1c]
call fcn.0066cc88
add esp, 0xc
push 0
push dword [ebp + 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00555c24
add esp, 0x10
test eax, eax
je 0x556b1f
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x556e0c
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x46a68]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xffffffff
jne 0x556b5d
push dword [ebp - 0x1c]
call fcn.005568e8
pop ecx
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x556e0c
call fcn.00404b70
call fcn.00441290
lea edx, [ebp - 0x46a68]
push edx
call fcn.004413f0
pop ecx
xor ecx, ecx
mov dword [0x6fb15c], ecx
mov dword [0x833f58], 0
mov dword [0x833f5c], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x11c]
xor edx, edx
mov dword [0x833f50], eax
mov dword [0x833f54], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x556dbc
mov eax, dword [ebp - 8]
shl eax, 5
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x1e8]
mov eax, dword [ecx + eax + 0x10]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x12d]
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
shl edx, 5
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x1e8]
mov dl, byte [eax + edx]
sub dl, 1
jb 0x556c07
sub dl, 0x3f
je 0x556c2d
sub dl, 0x40
je 0x556c52
sub dl, 0x40
je 0x556ca0
jmp 0x556cef
push dword [ebp - 0xc]
push 0
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1e0]
call fcn.0066cc88
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x556cf6
push dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1e0]
push dword [ebp - 0x1c]
call fcn.00552255
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x556cf6
push dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x1dc]
push dword [ebp - 0x1c]
call fcn.00552255
add esp, 0xc
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1dc]
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x1e0]
call fcn.00540164
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x556cf6
mov dword [ebp - 4], 0xffffffff
jmp 0x556cf6
push dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x1dc]
push dword [ebp - 0x1c]
call fcn.00552255
add esp, 0xc
mov dword [ebp - 4], eax
push 0
push 0
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x1dc]
lea ecx, [ebp - 0x14]
push ecx
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x1e0]
call fcn.0054f000
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x556cf6
mov dword [ebp - 4], 0xffffffff
jmp 0x556cf6
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x556d18
push 0x5e15
call fcn.00402b9c
pop ecx
push eax
push 0
call fcn.00462a84
add esp, 8
jmp 0x556dd9
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x1e0]
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_WriteFile
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0x11a]
push eax
mov eax, dword [ebp - 0x2c]
pop edx
mov ecx, edx
xor edx, edx
div ecx
xor edx, edx
add dword [0x833f58], eax
adc dword [0x833f5c], edx
mov eax, dword [0x833f58]
mov edx, dword [0x833f5c]
mov dword [ebp - 0x46a70], eax
sub edx, 0x80000000
mov dword [ebp - 0x46a6c], edx
fild qword [ebp - 0x46a70]
fadd qword [0x556e10]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x46a78], eax
sub edx, 0x80000000
mov dword [ebp - 0x46a74], edx
fild qword [ebp - 0x46a78]
fadd qword [0x556e10]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
inc dword [ebp - 8]
mov eax, dword [0x6fb15c]
test eax, eax
jne 0x556dd9
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x129]
cmp edx, eax
jb 0x556bb1
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x1c]
call fcn.005568e8
pop ecx
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
call fcn.00441378
call fcn.00404b84
mov edx, dword [ebp - 4]
test edx, edx
je 0x556e07
xor eax, eax
jmp 0x556e0c
mov eax, 1
mov esp, ebp
pop ebp
ret