Function at 0x55662c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x46
add esp, 0xfffff004
push eax
dec eax
jne 0x556635
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.0066c9ec
add esp, 8
push 0x2e
lea ecx, [ebp - 0x46a68]
push ecx
call fcn.0066cb35
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x556685
xor eax, eax
jmp 0x5569f0
push 0x80c854
push dword [ebp - 0x28]
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x5566a0
xor eax, eax
jmp 0x5569f0
push 0x80c859
push dword [ebp - 0x28]
call fcn.0066c9ec
add esp, 8
push dword [ebp + 8]
call fcn.0045d8dc
pop ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
cmp edx, 0xffffffff
jne 0x5566cb
xor eax, eax
jmp 0x5569f0
push 0x46938
push 0
push dword [ebp - 0x1c]
call fcn.0066c86c
add esp, 0xc
push 0
push dword [ebp + 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00555808
add esp, 0x10
test eax, eax
je 0x556703
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x5569f0
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 0x556741
push dword [ebp - 0x1c]
call fcn.005564cc
pop ecx
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x5569f0
call fcn.00404a38
call fcn.00441118
lea edx, [ebp - 0x46a68]
push edx
call fcn.00441278
pop ecx
xor ecx, ecx
mov dword [0x6f6920], ecx
mov dword [0x826584], 0
mov dword [0x826588], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x11c]
xor edx, edx
mov dword [0x82657c], eax
mov dword [0x826580], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x5569a0
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 0x5567eb
sub dl, 0x3f
je 0x556811
sub dl, 0x40
je 0x556836
sub dl, 0x40
je 0x556884
jmp 0x5568d3
push dword [ebp - 0xc]
push 0
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1e0]
call fcn.0066c86c
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x5568da
push dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + 0x1e0]
push dword [ebp - 0x1c]
call fcn.00551e39
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x5568da
push dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
push dword [edx + 0x1dc]
push dword [ebp - 0x1c]
call fcn.00551e39
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.0053fd48
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5568da
mov dword [ebp - 4], 0xffffffff
jmp 0x5568da
push dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x1dc]
push dword [ebp - 0x1c]
call fcn.00551e39
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.0054ebe4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x5568da
mov dword [ebp - 4], 0xffffffff
jmp 0x5568da
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x5568fc
push 0x5e15
call fcn.00402a64
pop ecx
push eax
push 0
call fcn.0046279c
add esp, 8
jmp 0x5569bd
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 [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x46a70], eax
sub edx, 0x80000000
mov dword [ebp - 0x46a6c], edx
fild qword [ebp - 0x46a70]
fadd qword [0x5569f4]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x46a78], eax
sub edx, 0x80000000
mov dword [ebp - 0x46a74], edx
fild qword [ebp - 0x46a78]
fadd qword [0x5569f4]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
inc dword [ebp - 8]
mov eax, dword [0x6f6920]
test eax, eax
jne 0x5569bd
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x129]
cmp edx, eax
jb 0x556795
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x1c]
call fcn.005564cc
pop ecx
push dword [ebp - 0x24]
call sub.KERNEL32.DLL_CloseHandle
call fcn.00441200
call fcn.00404a4c
mov edx, dword [ebp - 4]
test edx, edx
je 0x5569eb
xor eax, eax
jmp 0x5569f0
mov eax, 1
mov esp, ebp
pop ebp
ret