Function at 0x40c110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d308
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x58fa50]
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 dword [ebp - 0x44], eax
mov eax, dword [eax + 0x4a0]
cmp byte [eax], 1
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
jne 0x40c891
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x5680fe
lea ecx, [ebp - 0x50]
call fcn.00403bc0
mov dword [ebp - 4], 0
movzx edx, word [ebp - 0x16]
movzx eax, word [ebp - 0x18]
movzx ecx, word [ebp - 0x1a]
push edx
movzx edx, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push ecx
movzx ecx, word [ebp - 0x22]
push edx
movzx edx, word [ebp - 0x24]
push eax
push ecx
push edx
lea eax, [ebp - 0x50]
push str._04d_02d_02d_02d_02d_02d_02d_RAW
push eax
call fcn.00401650
lea ecx, [ebp - 0x38]
add esp, 0x24
push ecx
call fcn.00403c80
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004036d0
mov edi, dword [ebp - 0x44]
mov edx, dword [edi + 0x4a0]
cmp byte [edx + 4], 1
jne 0x40c252
push 0x56973c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00414ca0
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 0x40c21b
push 0
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
push esi
push eax
push ecx
push edx
call fcn.00407080
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 0x40c255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c255
mov esi, dword [ebp - 0x40]
mov ecx, dword [edi + 0x4a0]
cmp byte [ecx + 2], 1
jne 0x40c2d3
push str..bmp
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00414ca0
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 0x40c299
push 0
lea ecx, [ebp - 0x28]
call fcn.004014e0
mov ecx, dword [ebp - 0x28]
test esi, esi
je 0x40c2b3
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
push edx
push eax
push esi
mov edx, 8
call fcn.00406e40
mov ecx, dword [ebp - 0x28]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c2d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x4a0]
cmp byte [ecx + 3], 1
jne 0x40c451
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.00404580
push 4
push str..raw
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.004036d0
mov eax, dword [ebp - 0x38]
push 0x567f58
push eax
call fcn.00514e5a
mov edi, dword [ebp - 0x34]
imul edi, dword [ebp - 0x30]
lea ebx, [edi + edi]
push ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], ebx
call fcn.00515042
add esp, 0xc
push ebx
mov esi, eax
push 0
push esi
call fcn.00516de0
add esp, 0xc
xor eax, eax
test edi, edi
jle 0x40c35b
lea ecx, [ecx]
mov ecx, dword [ebp - 0x40]
mov cl, byte [ecx + eax]
mov dl, cl
add cl, cl
shr dl, 6
add cl, cl
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], dl
inc eax
cmp eax, edi
jl 0x40c340
cmp dword [ebp - 0x2c], 0
je 0x40c37a
mov edx, dword [ebp - 0x2c]
push edx
push 1
push ebx
push esi
call fcn.00514fc8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0051517d
add esp, 0x14
push 7
push str.Off.raw
lea ecx, [ebp - 0x28]
call fcn.004036d0
mov ecx, dword [ebp - 0x28]
push 0x567f58
push ecx
call fcn.00514e5a
push ebx
push 0
push esi
mov dword [ebp - 0x2c], eax
call fcn.00516de0
mov eax, dword [ebp - 0x34]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add esp, 0x14
test ecx, ecx
jle 0x40c3e5
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x48], eax
inc ebx
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x48], 0
jle 0x40c3dd
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x48]
add eax, eax
mov ecx, ebx
dec byte [ecx]
add ecx, eax
dec edx
jne 0x40c3d6
add ebx, 2
dec dword [ebp - 0x3c]
jne 0x40c3c6
xor eax, eax
test edi, edi
jle 0x40c408
mov ebx, dword [ebp - 0x40]
mov edi, edi
mov cl, byte [ebx + eax]
mov dl, cl
add cl, cl
shr dl, 6
add cl, cl
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], dl
inc eax
cmp eax, edi
jl 0x40c3f0
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x40c425
mov edx, dword [ebp - 0x54]
push edi
push 1
push edx
push esi
call fcn.00514fc8
push edi
call fcn.0051517d
add esp, 0x14
push esi
call fcn.005150d6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x2a0], 1
jne 0x40c83c
call fcn.00418851
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c47b
push 0x80004005
call fcn.00401580
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov esi, 0x5680fe
shr esi, 0x10
mov byte [ebp - 4], 5
test esi, esi
jne 0x40c4b8
mov ecx, 0x5680fe
movzx edi, cx
push edi
call fcn.004225b3
test eax, eax
je 0x40c4c7
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00403910
jmp 0x40c4c7
push 0
push 0x5680fe
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov byte [ebp - 4], 6
call fcn.00418851
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c4e5
push 0x80004005
call fcn.00401580
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 7
test esi, esi
jne 0x40c51a
mov ecx, 0x5680fe
movzx esi, cx
push esi
call fcn.004225b3
test eax, eax
je 0x40c529
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403910
jmp 0x40c529
push 0
push 0x5680fe
lea ecx, [ebp - 0x2c]
call fcn.00403aa0
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 8
call fcn.00403c80
add esp, 4
mov byte [ebp - 4], 9
mov eax, dword [eax]
mov ebx, dword [ebp - 0x2c]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x40c5e0
cmp dword [ebx + 0xc], 0
jl 0x40c5d3
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40c5d3
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40c57d
cmp eax, dword [esi]
jne 0x40c57d
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40c5b2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40c596
call fcn.00401490
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00514c60
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40c5cb
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [ebp - 0x2c], edi
jmp 0x40c5e0
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403aa0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c603
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 - 0x2c]
call fcn.004036d0
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x30]
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
push esi
call fcn.00515042
add esp, 4
push esi
mov edi, eax
push 0
push edi
call fcn.00516de0
add esp, 0xc
push esi
call fcn.00515042
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.00516de0
add esp, 0xc
push esi
call fcn.00515042
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0x48], eax
call fcn.00516de0
add esp, 0xc
push esi
call fcn.00515042
add esp, 4
push esi
push 0
push eax
mov dword [ebp - 0x3c], eax
call fcn.00516de0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
movzx ecx, byte [ecx + 0x14e]
add esp, 0xc
push edx
mov edx, dword [ebp - 0x34]
push ebx
push edi
push eax
mov eax, dword [ebp - 0x40]
push edx
push eax
mov eax, dword [ebp - 0x3c]
call fcn.00405a50
push esi
mov ecx, edi
call fcn.004066f0
push esi
fstp dword [ebp - 0x58]
mov ecx, ebx
call fcn.004066f0
fstp dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x48]
push esi
call fcn.004066f0
fstp dword [ebp - 0x60]
push esi
mov esi, dword [ebp - 0x3c]
mov ecx, esi
call fcn.004066f0
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x3c]
sub esp, 0x20
fstp qword [esp + 0x18]
fld dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
fstp qword [esp + 0x10]
fld dword [ebp - 0x5c]
lea edx, [ebp - 0x28]
fstp qword [esp + 8]
fld dword [ebp - 0x58]
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.005150d6
add esp, 4
push ebx
call fcn.005150d6
mov eax, dword [ebp - 0x48]
add esp, 4
push eax
call fcn.005150d6
add esp, 4
push esi
call fcn.005150d6
mov esi, dword [ebp - 0x2c]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 4
or ecx, eax
jge 0x40c74e
push 0
lea ecx, [ebp - 0x2c]
call fcn.004014e0
mov esi, dword [ebp - 0x2c]
push 0x569784
push esi
call fcn.00514e5a
add esp, 8
test eax, eax
je 0x40c76b
push eax
call fcn.0051517d
add esp, 4
jmp 0x40c779
push 0
push 0
push 0x569788
call fcn.00417747
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40c795
push 0
lea ecx, [ebp - 0x2c]
call fcn.004014e0
mov esi, dword [ebp - 0x2c]
push 0x569784
push esi
call fcn.00514e5a
add esp, 8
test eax, eax
je 0x40c8c8
push eax
call fcn.0051517d
add esp, 4
push 0x4001
push esi
lea ecx, [ebp - 0x78]
call fcn.00428e2b
push 2
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x2c]
push 0
push 0
lea ecx, [ebp - 0x78]
call eax
mov edi, dword [ebp - 0x28]
push edi
lea ecx, [ebp - 0x78]
call fcn.00428918
push 0x5680fc
lea ecx, [ebp - 0x78]
call fcn.00428918
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 8
call fcn.00428b58
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c81c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c83c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x4a0]
mov byte [edx], 0
mov byte [ebp - 4], 0
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 0x40c86b
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 - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x44]
mov edx, dword [esi + 0x39c]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
imul edx, ebx
add edx, dword [esi + 0x398]
mov al, byte [edx + ecx]
mov byte [esi + 0x3a0], al
mov eax, dword [esi + 0x294]
cmp eax, 4
ja case.default.0x40c8c1
jmp dword [eax*4 + 0x40ca3c]
push 0
push 0
push 0x5697ac
call fcn.00417747
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8f6
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 0x40c919
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 - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c93c
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 - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ca1a
movzx edx, byte [esi + 0x14e]
mov eax, dword [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x4c]
push eax
push ebx
push edx
push ecx
call fcn.004062c0
jmp case.default.0x40c8c1
mov edi, ebx
imul edi, dword [ebp - 0x30]
xor eax, eax
test edi, edi
jle case.default.0x40c8c1
mov esi, dword [ebp - 0x4c]
add esi, 2
jmp 0x40c9a0
movzx edx, byte [eax + ecx]
mov byte [esi - 2], dl
movzx edx, byte [eax + ecx]
mov byte [esi - 1], dl
movzx edx, byte [eax + ecx]
mov byte [esi], dl
inc eax
add esi, 3
cmp eax, edi
jl 0x40c9a0
mov esi, dword [ebp - 0x44]
jmp case.default.0x40c8c1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
push eax
push ebx
push edx
push ecx
call fcn.00405b40
jmp case.default.0x40c8c1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
push eax
push ebx
push edx
push ecx
call fcn.00406050
jmp case.default.0x40c8c1
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
push eax
push ebx
push edx
push ecx
call fcn.00405ce0
xor ecx, ecx
cmp dword [esi + 0x340], 1
jne 0x40ca1a
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 eax, dword [ebp - 0x30]
push eax
push ebx
mov ebx, dword [ebp - 0x4c]
call fcn.004070f0
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.005149e7
mov esp, ebp
pop ebp
ret 0xc