Function at 0x40c330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x590a50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [edi + 0x4a4]
cmp byte [ecx], 1
mov esi, edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ebx
jne 0x40c936
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x56910e
lea ecx, [ebp - 0x3c]
call fcn.00403db0
mov dword [ebp - 4], 0
movzx eax, word [ebp - 0x16]
movzx ecx, word [ebp - 0x18]
movzx edx, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push ecx
movzx ecx, word [ebp - 0x1e]
push edx
movzx edx, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push ecx
push edx
push eax
lea ecx, [ebp - 0x3c]
push str._04d_02d_02d_02d_02d_02d_02d_RAW
push ecx
call fcn.00401650
lea edx, [ebp - 0x30]
add esp, 0x24
push edx
call fcn.00403e70
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004038c0
mov eax, dword [edi + 0x4a4]
cmp byte [eax + 4], 1
jne 0x40c467
push str..png
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00414ba0
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40c436
push 0
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp + 0x10]
push esi
push edi
push ebx
push edx
call fcn.00407270
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c46a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c46a
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4a4]
cmp byte [edx + 2], 1
jne 0x40c4e5
push str..bmp
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00414ba0
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
or edx, eax
jge 0x40c4b1
push 0
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov ecx, dword [ebp - 0x28]
test esi, esi
je 0x40c4c5
push edi
push ebx
push esi
mov edx, 8
call fcn.00407030
mov ecx, dword [ebp - 0x28]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c4e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4a4]
cmp byte [edx + 3], 1
jne 0x40c578
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404770
push 4
push str..raw
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.004038c0
mov ecx, dword [ebp - 0x30]
push 0x568f68
push ecx
call fcn.00514f50
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40c555
mov edx, ebx
imul edx, edi
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x1a0]
push 1
add edx, edx
push edx
push ecx
call fcn.005150be
mov edx, dword [ebp - 0x38]
push edx
call fcn.00515273
add esp, 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c578
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x2a4], 1
jne 0x40c832
push 0x56910e
lea ecx, [ebp - 0x44]
call fcn.00403db0
push 0x56910e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00403db0
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 4], 6
call fcn.00403e70
add esp, 4
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00403850
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
push str.CapLog.csv
lea ecx, [ebp - 0x28]
call fcn.004038c0
mov eax, ebx
imul eax, edi
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
push esi
call fcn.00515138
add esp, 4
push esi
mov edi, eax
push 0
push edi
call fcn.00516ee0
add esp, 0xc
push esi
call fcn.00515138
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.00516ee0
add esp, 0xc
push esi
call fcn.00515138
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00516ee0
add esp, 0xc
push esi
call fcn.00515138
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0x38], eax
call fcn.00516ee0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
movzx ecx, byte [ecx + 0x14e]
add esp, 0xc
push edx
mov edx, dword [ebp - 0x48]
push ebx
push edi
push eax
mov eax, dword [ebp - 0x4c]
push edx
push eax
mov eax, dword [ebp - 0x38]
call fcn.00405c40
push esi
mov ecx, edi
call fcn.004068e0
push esi
fstp dword [ebp - 0x54]
mov ecx, ebx
call fcn.004068e0
fstp dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
push esi
call fcn.004068e0
fstp dword [ebp - 0x58]
push esi
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.004068e0
fstp dword [ebp - 0x38]
fld dword [ebp - 0x38]
sub esp, 0x20
fstp qword [esp + 0x18]
fld dword [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
fstp qword [esp + 0x10]
fld dword [ebp - 0x50]
lea edx, [ebp - 0x44]
fstp qword [esp + 8]
fld dword [ebp - 0x54]
fstp qword [esp]
push ecx
push str._s__4.4f__44.4f__4.4f__4.4f
push edx
call fcn.00401650
add esp, 0x2c
push edi
call fcn.005151cc
add esp, 4
push ebx
call fcn.005151cc
mov eax, dword [ebp - 0x40]
add esp, 4
push eax
call fcn.005151cc
add esp, 4
push esi
call fcn.005151cc
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 4
or ecx, eax
jge 0x40c72f
push 0
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov edx, dword [ebp - 0x28]
push 0x56a794
push edx
call fcn.00514f50
add esp, 8
test eax, eax
je 0x40c74c
push eax
call fcn.00515273
add esp, 4
jmp 0x40c75a
push 0
push 0
push 0x56a798
call fcn.0041774d
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40c779
push 0
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov edx, dword [ebp - 0x28]
push 0x56a794
push edx
call fcn.00514f50
add esp, 8
test eax, eax
je 0x40c890
push eax
call fcn.00515273
mov ecx, dword [ebp - 0x28]
add esp, 4
push 0x4001
push ecx
lea ecx, [ebp - 0x74]
call fcn.00428eb0
push 2
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x2c]
push 0
push 0
lea ecx, [ebp - 0x74]
call eax
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x74]
call fcn.0042899d
push 0x56910c
lea ecx, [ebp - 0x74]
call fcn.0042899d
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.00428bdd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c806
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4a4]
mov byte [edx], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c861
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c939
push 0
push 0
push 0x56a7bc
call fcn.0041774d
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c907
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c9d7
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x3a0]
imul edx, ebx
add edx, dword [ecx + 0x39c]
mov al, byte [edx + esi]
mov byte [ecx + 0x3a4], al
mov eax, dword [ecx + 0x298]
cmp eax, 4
ja case.default.0x40c95f
jmp dword [eax*4 + 0x40ca24]
movzx ecx, byte [ecx + 0x14e]
mov edx, dword [ebp - 0x34]
push ecx
push edi
push ebx
push edx
push esi
call fcn.004064b0
jmp case.default.0x40c95f
mov edi, ebx
imul edi, dword [ebp + 0x10]
xor eax, eax
test edi, edi
jle 0x40c9ac
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edi, edi
movzx edx, byte [eax + esi]
mov byte [ecx - 2], dl
movzx edx, byte [eax + esi]
mov byte [ecx - 1], dl
movzx edx, byte [eax + esi]
mov byte [ecx], dl
inc eax
add ecx, 3
cmp eax, edi
jl 0x40c990
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [eax + 0x344], 1
jne 0x40c9d7
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
push edi
mov dword [eax + 4], ecx
push ebx
mov ebx, dword [ebp - 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
call fcn.004072e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00514add
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x34]
push edi
push ebx
push eax
push esi
call fcn.00405d30
jmp case.default.0x40c95f
mov ecx, dword [ebp - 0x34]
push edi
push ebx
push ecx
push esi
call fcn.00406240
jmp case.default.0x40c95f
mov edx, dword [ebp - 0x34]
push edi
push ebx
push edx
push esi
call fcn.00405ed0
jmp case.default.0x40c95f