Function at 0x4128a0
Capabilities:
Get file attributes
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4335e8
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x443080]
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 dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x6c], eax
cmp ecx, dword [esi + 8]
jg 0x412ec6
mov eax, dword [esi + 0x18]
lea edi, [esi + 0x18]
mov dword [ebp - 0x18], edi
cmp dword [eax - 0xc], 0
jne 0x412919
call fcn.0040f870
push 1
push 1
push 0
push 0x100000
push 0
push 0
mov ecx, eax
call fcn.004110f0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x412ec6
lea eax, [esi + 0x20]
mov dword [ebp - 0x78], eax
mov eax, dword [eax]
test eax, eax
je 0x41293a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040b5c0
mov byte [ebp - 4], 1
call fcn.0040f760
mov ecx, eax
test ecx, ecx
je 0x412ee8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
call fcn.0040f760
mov ecx, eax
test ecx, ecx
je 0x412ef2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x444ce4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x444ad0]
cmp eax, dword [ecx + 4]
jg 0x412efc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp - 0x6c]
mov edi, eax
mov eax, dword [0x444acc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 4
ja case.default.0x4129e8
jmp dword [eax*4 + 0x412f48]
push str._ERR_
lea ecx, [ebp - 0x5c]
call fcn.0040a540
jmp 0x412a7a
push str._WAR_
lea ecx, [ebp - 0x5c]
call fcn.0040a540
jmp 0x412a7a
push str._INF_
lea ecx, [ebp - 0x5c]
call fcn.0040a540
jmp 0x412a7a
push str._TRA_
lea ecx, [ebp - 0x5c]
call fcn.0040a540
jmp 0x412a7a
push str._DBG_
lea ecx, [ebp - 0x5c]
call fcn.0040a540
jmp 0x412a7a
call fcn.0040f760
mov ecx, eax
test ecx, ecx
je 0x412f33
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
push str._NONE_
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call fcn.0040b4a0
test al, al
jne 0x412a7a
push 6
push str._NONE_
lea ecx, [ebp - 0x5c]
call fcn.004120f0
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 6
cmp dword [eax - 4], 1
jle 0x412a95
push dword [eax - 0xc]
lea ecx, [ebp - 0x5c]
call fcn.0040cc40
mov eax, dword [ebp - 0x5c]
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x74]
push dword [ebp - 0x1c]
push dword [ebp - 0x6c]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3e]
push eax
movzx eax, word [ebp - 0x42]
push eax
lea eax, [ebp - 0x68]
push str._.2d__.2d__.2d:_.2d:_.2d:_.3d_:__s__s__d__PID:_d___d__s_n
push eax
call fcn.0040cd00
mov edx, dword [ebp - 0x5c]
add esp, 0x38
mov byte [ebp - 4], 4
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412af1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x68]
cmp dword [edi - 4], 1
jle 0x412b08
push dword [edi - 0xc]
lea ecx, [ebp - 0x68]
call fcn.0040cc40
mov edi, dword [ebp - 0x68]
lea eax, [ebp + 0x1c]
push eax
push edi
lea ecx, [ebp - 0x64]
call fcn.0040d540
cmp dword [esi + 4], 0
je 0x412b9a
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
test eax, eax
je 0x412b9a
push 0xfffffffffffffff5
call esi
cmp eax, 0xffffffff
je 0x412b9a
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x412b3e
push 4
jmp 0x412b5b
cmp eax, 2
jne 0x412b47
push 9
jmp 0x412b5b
cmp eax, 3
jne 0x412b50
push 0xa
jmp 0x412b5b
cmp eax, 4
jne 0x412b59
push 0xe
jmp 0x412b5b
push 7
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov esi, dword [ebp - 0x64]
cmp dword [esi - 4], 1
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x1c], eax
jle 0x412b81
push eax
lea ecx, [ebp - 0x64]
call fcn.0040cc40
mov esi, dword [ebp - 0x64]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push 0
push dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x412b9d
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x64], 0xffffffff
jne 0x412c42
mov eax, dword [ebp - 0x18]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x64], eax
cmp eax, 0xffffffff
je 0x412e64
push dword [ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x412e64
push 1
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x412c3f
push 0
push 0
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x412c3f
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x412c31
push dword [ecx - 0xc]
mov ecx, eax
call fcn.0040cc40
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
push ecx
push 4
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov eax, dword [ebp - 0x60]
push 2
push 0
push 0
push dword [eax + 0x64]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xfde9
lea eax, [ebp - 0xf8]
push esi
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], eax
call fcn.00410320
mov edx, dword [ebp - 0xfc]
xorps xmm0, xmm0
mov ecx, edx
mov byte [ebp - 4], 7
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412c95
sub ecx, dword [ebp - 0x1c]
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.00409e70
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x412cc6
push eax
call fcn.004189d4
add esp, 4
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x48], 0
je 0x412ced
cmp dword [esi - 4], 1
jle 0x412ce3
push dword [esi - 0xc]
lea ecx, [ebp - 0x64]
call fcn.0040cc40
mov esi, dword [ebp - 0x64]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x60]
cmp dword [edx], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], 0
je 0x412d48
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x20], 0xf
push ecx
cmova eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov ecx, edx
push eax
call fcn.00411a00
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x60]
push dword [eax + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x18]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x60]
push dword [eax + 0x64]
jmp 0x412d5d
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x18]
push 0
cmova eax, dword [ebp - 0x34]
push ecx
push dword [ebp - 0x24]
push eax
push dword [edx + 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x2c], 0
je 0x412e30
cmp dword [ebp + 0xc], 1
jne 0x412e30
sub esp, 0x18
lea edi, [ebp - 0x34]
mov ecx, esp
xorps xmm0, xmm0
mov dword [ebp - 0x1c], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
cmp dword [ebp - 0x20], 0xf
mov edx, dword [ebp - 0x24]
cmova edi, dword [ebp - 0x34]
mov dword [ebp - 0x5c], edi
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x74], edx
cmp edx, 0x7fffffff
ja 0x412f3d
cmp edx, 0xf
ja 0x412dd3
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 0x5c]
mov dword [ecx + 0x14], 0xf
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
jmp 0x412e29
mov eax, edx
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x412de6
mov eax, 0x7fffffff
jmp 0x412df0
mov edx, 0x16
cmp eax, edx
cmovb eax, edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.00409db0
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov dword [edx], eax
mov eax, dword [ebp - 0x74]
mov dword [edx + 0x14], ecx
mov dword [edx + 0x10], eax
lea ecx, [eax + 1]
push ecx
push dword [ebp - 0x5c]
push dword [ebp - 0x70]
call fcn.004162f0
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov ecx, eax
call fcn.00412550
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x412e64
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412e5a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412f42
push ecx
push edx
call fcn.00414794
add esp, 8
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x68], 0
je 0x412e86
mov eax, dword [eax + 0x64]
cmp eax, 0xffffffff
je 0x412e86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x60]
mov dword [eax + 0x64], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412e9e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x412eb6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
test eax, eax
je 0x412ec6
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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.00414ae1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b460
push 0x80004005
call fcn.0040b460
push 0x444ad0
call fcn.00414a7d
add esp, 4
cmp dword [0x444ad0], 0xffffffff
jne 0x4129bd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x444ad0
mov dword [0x444acc], eax
call fcn.00414a2c
add esp, 4
jmp 0x4129bd
push 0x80004005
call fcn.0040b460
call fcn.00401230
call fcn.0041829f
nop
out dx, eax
sub dword [ecx], eax
invalid