Function at 0x40c5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f090
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x591a60]
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 esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
imul esi, eax
mov ebx, ecx
mov edi, edx
push esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x5c], esi
call fcn.00516910
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0x54], eax
call fcn.00518800
mov ecx, dword [ebp - 0x54]
add esp, 0xc
push esi
push edi
push ecx
call fcn.0051a740
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x56a1ae
lea ecx, [ebp - 0x4c]
call fcn.00403e00
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 - 0x4c]
push str._04d_02d_02d_02d_02d_02d_02d_RAW
push ecx
call fcn.00401640
lea edx, [ebp - 0x2c]
add esp, 0x24
push edx
call fcn.00403ec0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403910
cmp dword [ebx + 0x6bc], 1
jne 0x40c7d0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004047c0
push str..bmp
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 2
call fcn.00416740
add esp, 0xc
push 4
push str..raw
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00403910
mov eax, dword [ebp - 0x2c]
push 0x56a008
push eax
call fcn.00516728
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40c751
mov edx, dword [ebx + 0x1a0]
push eax
push 1
lea ecx, [esi + esi]
push ecx
push edx
call fcn.00516896
mov eax, dword [ebp - 0x30]
push eax
call fcn.00516a4b
add esp, 0x14
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
or edx, eax
jge 0x40c770
push 0
lea ecx, [ebp - 0x28]
call fcn.004014d0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x40c78d
mov edx, dword [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x44]
push edx
push eax
mov edx, 8
call fcn.00407280
mov ecx, dword [ebp - 0x28]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7ad
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 - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x4a8]
cmp byte [eax], 1
jne 0x40cd26
cmp byte [eax + 4], 1
jne 0x40c84f
push str..png
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00416740
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40c81d
push 0
lea ecx, [ebp - 0x28]
call fcn.004014d0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
push edi
push eax
push ecx
push edx
call fcn.004074c0
mov byte [ebp - 4], 1
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 0x40c84f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x4a8]
cmp byte [ecx + 2], 1
jne 0x40c9e4
push str..bmp
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00416740
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
or edx, eax
jge 0x40c897
push 0
lea ecx, [ebp - 0x28]
call fcn.004014d0
mov ecx, dword [ebp - 0x28]
test edi, edi
je 0x40c8ae
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
push edx
push eax
push edi
mov edx, 8
call fcn.00407280
push str..csv
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00416740
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x40]
push 0x56b8a4
push eax
call fcn.00516728
add esp, 8
test eax, eax
je 0x40c8e5
push eax
call fcn.00516a4b
add esp, 4
mov ecx, dword [ebp - 0x40]
push 0x4001
push ecx
lea ecx, [ebp - 0x80]
call fcn.0042a01a
push 2
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x2c]
push 0
push 0
lea ecx, [ebp - 0x80]
call eax
push 0x56a1ae
lea ecx, [ebp - 0x38]
call fcn.00403e00
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 4], 8
test eax, eax
jle 0x40c96c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
test eax, eax
jle 0x40c95a
mov dword [ebp - 0x3c], eax
movzx ecx, byte [ebx]
push ecx
lea edx, [ebp - 0x38]
push 0x56b8a8
push edx
call fcn.00401640
mov eax, dword [ebp - 0x38]
add esp, 0xc
push eax
lea ecx, [ebp - 0x80]
inc ebx
call fcn.00429b07
dec dword [ebp - 0x3c]
jne 0x40c933
push 0x56a1ac
lea ecx, [ebp - 0x80]
call fcn.00429b07
dec dword [ebp - 0x30]
jne 0x40c929
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.00429d47
mov byte [ebp - 4], 5
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 0x40c9be
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 - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebx + 0x4a8]
cmp byte [ecx + 3], 1
jne 0x40ca69
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004047c0
push 4
push str..raw
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00403910
mov eax, dword [ebp - 0x2c]
push 0x56a008
push eax
call fcn.00516728
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40ca46
mov edx, dword [ebx + 0x1a0]
push eax
push 1
lea ecx, [esi + esi]
push ecx
push edx
call fcn.00516896
mov eax, dword [ebp - 0x30]
push eax
call fcn.00516a4b
add esp, 0x14
mov byte [ebp - 4], 1
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 0x40ca69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx + 0x2a4], 1
jne 0x40cd1d
push 0x56a1ae
lea ecx, [ebp - 0x38]
call fcn.00403e00
push 0x56a1ae
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.00403e00
lea ecx, [ebp - 0x3c]
push ecx
mov byte [ebp - 4], 0xb
call fcn.00403ec0
add esp, 4
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.004038a0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cad4
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.00403910
mov eax, esi
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
push esi
call fcn.00516910
add esp, 4
push esi
mov edi, eax
push 0
push edi
call fcn.00518800
add esp, 0xc
push esi
call fcn.00516910
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.00518800
add esp, 0xc
push esi
call fcn.00516910
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00518800
add esp, 0xc
push esi
call fcn.00516910
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0x30], eax
call fcn.00518800
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
movzx ecx, byte [ecx + 0x14e]
add esp, 0xc
push edx
mov edx, dword [ebp - 0x44]
push ebx
push edi
push eax
mov eax, dword [ebp - 0x58]
push edx
push eax
mov eax, dword [ebp - 0x30]
call fcn.00405cf0
push esi
mov ecx, edi
call fcn.00406990
push esi
fstp dword [ebp - 0x60]
mov ecx, ebx
call fcn.00406990
fstp dword [ebp - 0x68]
mov ecx, dword [ebp - 0x40]
push esi
call fcn.00406990
fstp dword [ebp - 0x64]
push esi
mov esi, dword [ebp - 0x30]
mov ecx, esi
call fcn.00406990
fstp dword [ebp - 0x30]
fld dword [ebp - 0x30]
sub esp, 0x20
fstp qword [esp + 0x18]
fld dword [ebp - 0x64]
fstp qword [esp + 0x10]
fld dword [ebp - 0x68]
mov ecx, dword [ebp - 0x4c]
fstp qword [esp + 8]
lea edx, [ebp - 0x38]
fld dword [ebp - 0x60]
fstp qword [esp]
push ecx
push str._s__4.4f__44.4f__4.4f__4.4f
push edx
call fcn.00401640
add esp, 0x2c
push edi
call fcn.005169a4
add esp, 4
push ebx
call fcn.005169a4
mov eax, dword [ebp - 0x40]
add esp, 4
push eax
call fcn.005169a4
add esp, 4
push esi
call fcn.005169a4
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 0x40cc1a
push 0
lea ecx, [ebp - 0x28]
call fcn.004014d0
mov edx, dword [ebp - 0x28]
push 0x56b8a4
push edx
call fcn.00516728
add esp, 8
test eax, eax
je 0x40cc37
push eax
call fcn.00516a4b
add esp, 4
jmp 0x40cc45
push 0
push 0
push 0x56b8d4
call fcn.00418898
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40cc64
push 0
lea ecx, [ebp - 0x28]
call fcn.004014d0
mov edx, dword [ebp - 0x28]
push 0x56b8a4
push edx
call fcn.00516728
add esp, 8
test eax, eax
je 0x40cd63
push eax
call fcn.00516a4b
mov ecx, dword [ebp - 0x28]
add esp, 4
push 0x4001
push ecx
lea ecx, [ebp - 0x80]
call fcn.0042a01a
push 2
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x2c]
push 0
push 0
lea ecx, [ebp - 0x80]
call eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
call fcn.00429b07
push 0x56a1ac
lea ecx, [ebp - 0x80]
call fcn.00429b07
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xb
call fcn.00429d47
mov byte [ebp - 4], 0xa
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 0x40ccf1
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 - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebx + 0x4a8]
mov byte [ecx], 0
mov edx, dword [ebp - 0x54]
push edx
call fcn.005169a4
mov eax, dword [ebx + 0x3a4]
mov ecx, dword [ebp - 0x44]
imul eax, ecx
add eax, dword [ebx + 0x3a0]
add esp, 4
mov dl, byte [eax + edi]
mov eax, dword [ebx + 0x298]
mov byte [ebx + 0x3a8], dl
cmp eax, 4
ja case.default.0x40cd5c
jmp dword [eax*4 + 0x40cec8]
push 0
push 0
push 0x56b8f8
call fcn.00418898
mov byte [ebp - 4], 0xa
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 0x40cd94
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 - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ce5f
movzx eax, byte [ebx + 0x14e]
mov edx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x48]
push edx
push ecx
push eax
push edi
call fcn.00406560
jmp case.default.0x40cd5c
xor eax, eax
test esi, esi
jle case.default.0x40cd5c
mov ecx, dword [ebp - 0x48]
add ecx, 2
movzx edx, byte [eax + edi]
mov byte [ecx - 2], dl
movzx edx, byte [eax + edi]
mov byte [ecx - 1], dl
movzx edx, byte [eax + edi]
mov byte [ecx], dl
inc eax
add ecx, 3
cmp eax, esi
jl 0x40cde5
jmp case.default.0x40cd5c
mov eax, dword [ebp - 0x34]
push eax
push ecx
mov ecx, dword [ebp - 0x48]
push ecx
push edi
call fcn.00405de0
jmp case.default.0x40cd5c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x48]
push edx
push ecx
push eax
push edi
call fcn.004062f0
jmp case.default.0x40cd5c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x48]
push edx
push ecx
push eax
push edi
call fcn.00405f80
xor ecx, ecx
cmp dword [ebx + 0x344], 1
jne 0x40ce5f
mov edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x34]
push ecx
push edx
call fcn.00407530
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce82
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 - 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.005162b5
mov esp, ebp
pop ebp
ret 0xc