Function at 0x1001b6a3
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 8]
push esi
add eax, 0xfffffff8
mov esi, ecx
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x40], eax
call fcn.1000f804
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
push 0x100e3d7c
setne al
dec al
and al, 3
add al, 0x2a
movsx di, al
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, 1
or eax, dword [0x100e306c]
je 0x1001b708
mov eax, dword [ebp + 8]
cmp di, word [eax]
jne 0x1001b701
cmp word [eax + 2], 0
je 0x1001b708
xor esi, esi
jmp 0x1001c42c
push ebx
push dword [0x100e2bdc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ebx, 0x100e2cf8
mov byte [ebp - 0x23], 0
mov byte [ebp - 7], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 6], 0
mov byte [ebp - 2], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 3], 0
mov byte [ebp - 5], 0
mov byte [ebp - 1], 0
jmp 0x1001b7a3
cmp word [eax + 2], di
jne 0x1001b7a8
add eax, 4
push 6
push eax
push str.thread
mov dword [ebp - 0x38], eax
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001b78f
mov eax, dword [ebp + 8]
mov ax, word [eax + 0xc]
cmp ax, 0x2b
jne 0x1001b781
mov byte [ebp - 1], 3
jmp 0x1001b796
cmp ax, 0x40
sete al
inc al
mov byte [ebp - 1], al
jmp 0x1001b796
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x38]
push eax
call fcn.10008e60
mov eax, dword [ebp - 0x38]
pop ecx
cmp word [eax], di
je 0x1001b74e
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0xc], eax
je 0x1001b7bb
cmp word [eax], 0
mov byte [ebp - 4], 1
je 0x1001b7bf
mov byte [ebp - 4], 0
cmp word [eax], 0x2a
jne 0x1001b7e6
add eax, 2
cmp word [eax], 0x3f
mov byte [ebp - 3], 1
mov dword [ebp - 0xc], eax
jne 0x1001b7de
inc eax
inc eax
mov byte [ebp - 5], 1
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
call fcn.1000f804
push dword [ebp - 0xc]
call fcn.100132bf
cmp byte [ebp - 3], 0
pop ecx
mov dword [ebp - 0xc], eax
je 0x1001b80a
cmp byte [ebp - 5], 0
jne 0x1001b80a
cmp word [eax], 0
jne 0x1001b80a
mov byte [ebp - 0x13], 1
jmp 0x1001b824
cmp dword [ebp - 0x20], 0
mov byte [ebp - 0x13], 0
jne 0x1001b824
cmp word [eax], 0
jne 0x1001b824
cmp byte [ebp - 1], 0
jne 0x1001b824
mov byte [ebp - 1], 3
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x1001b82e
mov byte [ebp - 1], cl
mov al, byte [ebp - 1]
and al, 1
je 0x1001b83a
mov dword [ebp - 0x44], ecx
jmp 0x1001b83e
or dword [ebp - 0x44], 0xffffffff
test al, al
je 0x1001b844
mov ebx, ecx
test byte [esi + 0xc], 1
mov byte [ebp - 0x22], 1
je 0x1001b857
cmp dword [ebx], 0
mov byte [ebp - 0xd], 1
jne 0x1001b85b
mov byte [ebp - 0xd], 0
test byte [ebp + 0xc], 1
je 0x1001b86d
and dword [ebp + 0xc], 0xfffffffe
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x22], 0
or dword [ebp - 0x54], 0xffffffff
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x58], 0xfff80000
mov edi, 0x100c6a64
jne 0x1001b896
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x14]
mov byte [ebp - 7], 2
mov dword [ebp - 0x54], eax
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 8]
cmp word [eax], 0
lea ecx, [ebp - 0x48]
setne byte [ebp - 0x12]
and dword [ebp - 0x38], 0
call fcn.10046123
mov al, byte [esi + 0xc]
mov cl, al
and cl, 1
mov byte [ebp - 0x14], cl
mov cl, al
shr al, 2
and al, 1
mov byte [ebp - 0x24], al
mov al, byte [esi + 0xc]
shr al, 3
and al, 1
mov byte [ebp - 0x26], al
mov al, byte [esi + 0xc]
shr al, 4
and al, 1
mov byte [ebp - 0xe], al
mov al, byte [esi + 0xc]
shr al, 5
and al, 1
mov byte [ebp - 0x11], al
mov al, byte [esi + 0xc]
xor edx, edx
shr cl, 1
shr al, 6
and cl, 1
and al, 1
push 0x100e3d7c
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edx
mov byte [ebp - 8], 0xff
mov byte [ebp - 5], cl
mov byte [ebp - 0x10], al
mov byte [ebp - 0x25], 0xff
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x4c], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x34]
cmp word [eax], cx
jne 0x1001b986
xor edi, edi
inc edi
mov cx, word [eax + 2]
cmp cx, word [ebp - 0x34]
jne 0x1001b986
add eax, 4
inc dword [ebp - 0x18]
push 6
push eax
push str.thread
mov dword [ebp + 8], eax
call fcn.10040df5
add esp, 0xc
test al, al
jne 0x1001b970
push edi
push dword [ebp + 8]
push 0x100ca854
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001b9ca
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x2d
jne 0x1001b9b3
mov byte [ebp - 0xe], 0
lea eax, [ebp + 8]
push eax
call fcn.10008e60
pop ecx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x34]
cmp word [eax], cx
je 0x1001b926
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
je 0x1001bd8f
cmp byte [ebp - 6], 0
je 0x1001bd8f
xor edi, edi
inc edi
jmp 0x1001bd91
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, edi
or eax, dword [0x100e306c]
jne 0x1001b970
mov byte [ebp - 0xe], 1
jmp 0x1001b970
push 5
push dword [ebp + 8]
push str.lock:
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001ba70
inc byte [ebp - 0xf]
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
add dword [ebp + 8], 0xa
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.100935c9
mov eax, dword [ebx + 0x10]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jl 0x1001ba41
jg 0x1001ba12
test eax, eax
jbe 0x1001ba41
cmp byte [ebp - 7], 1
je 0x1001ba41
cmp byte [ebp - 0xf], 1
jne 0x1001b970
mov edx, dword [ebp - 0x30]
cmp eax, edx
jne 0x1001b970
mov eax, dword [ebp - 0x2c]
cmp ecx, eax
jne 0x1001b970
mov byte [ebp - 7], 1
mov dword [ebp - 0x58], edx
jmp 0x1001ba54
mov eax, dword [ebp - 0x2c]
test eax, eax
jl 0x1001ba5c
mov ecx, dword [ebp - 0x30]
jg 0x1001ba51
test ecx, ecx
jbe 0x1001ba5c
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
jmp 0x1001b970
or dword [ebp - 0x54], 0xffffffff
mov byte [ebp - 0x23], 1
mov dword [ebp - 0x58], 0xfff80000
jmp 0x1001b970
push 3
push dword [ebp + 8]
push 0x100ca848
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bac0
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
cmp ax, 0x31
jb 0x1001bab7
cmp ax, 0x39
ja 0x1001bab7
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, edi
or eax, dword [0x100e306c]
jne 0x1001b970
mov byte [ebp - 0x10], 1
jmp 0x1001b970
mov byte [ebp - 0x10], 0
jmp 0x1001b970
push edi
push dword [ebp + 8]
push 0x100ca844
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bae6
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x2d
setne byte [ebp - 0x24]
jmp 0x1001b970
push 2
push dword [ebp + 8]
push 0x100ca840
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bb0d
mov eax, dword [ebp + 8]
cmp word [eax + 4], 0x2d
setne byte [ebp - 0x26]
jmp 0x1001b970
push 2
push dword [ebp + 8]
push 0x100ca83c
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bb5d
mov eax, dword [ebp + 8]
mov ax, word [eax + 4]
cmp ax, 0x31
jb 0x1001bb54
cmp ax, 0x39
ja 0x1001bb54
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, edi
or eax, dword [0x100e306c]
jne 0x1001b970
mov byte [ebp - 0x11], 1
jmp 0x1001b970
mov byte [ebp - 0x11], 0
jmp 0x1001b970
push 4
push dword [ebp + 8]
push str.dbg
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bbb3
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
cmp ax, 0x31
jb 0x1001bba7
cmp ax, 0x39
ja 0x1001bba7
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, edi
or eax, dword [0x100e306c]
jne 0x1001b970
mov byte [0x100e2e70], 1
jmp 0x1001b970
mov byte [0x100e2e70], 0
jmp 0x1001b970
push 4
push dword [ebp + 8]
push str.RAW
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bc03
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
cmp ax, 0x31
jb 0x1001bbfa
cmp ax, 0x39
ja 0x1001bbfa
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, edi
or eax, dword [0x100e306c]
jne 0x1001b970
mov byte [ebp - 5], 1
jmp 0x1001b970
mov byte [ebp - 5], 0
jmp 0x1001b970
push 3
push dword [ebp + 8]
push 0x100ca828
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bc3e
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
cmp ax, 0x31
jb 0x1001bc31
cmp ax, 0x39
ja 0x1001bc31
push 3
pop eax
jmp 0x1001bc33
xor eax, eax
mov byte [ebp - 3], al
mov byte [ebp - 0x25], al
jmp 0x1001b970
push 2
lea eax, [ebp + 8]
push eax
push 0x100ca824
call fcn.10048195
add esp, 0xc
test al, al
je 0x1001bc5e
mov byte [ebp - 3], 1
jmp 0x1001b97a
push 3
lea eax, [ebp + 8]
push eax
push 0x100ca820
call fcn.10048195
add esp, 0xc
test al, al
jne 0x1001bc55
push 3
push dword [ebp + 8]
push 0x100ca81c
call fcn.10040df5
add esp, 0xc
test al, al
je 0x1001bccc
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
inc dword [ebp - 0x4c]
cmp ax, 0x31
jb 0x1001bcbf
cmp ax, 0x39
ja 0x1001bcbf
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, edi
or eax, dword [0x100e306c]
jne 0x1001b970
mov byte [ebp - 8], 1
jmp 0x1001b970
and byte [esi + 0xc], 0xfe
mov byte [ebp - 8], 0
jmp 0x1001b970
push edi
lea eax, [ebp + 8]
push eax
push 0x100ca818
call fcn.10048195
add esp, 0xc
test al, al
je 0x1001bceb
mov byte [ebp - 6], 1
jmp 0x1001b97a
push 3
lea eax, [ebp + 8]
push eax
push 0x100ca814
call fcn.10048195
add esp, 0xc
test al, al
je 0x1001bd0b
mov byte [ebp - 2], 1
jmp 0x1001b97a
push 4
lea eax, [ebp + 8]
push eax
push str.vol
call fcn.10048195
add esp, 0xc
test al, al
je 0x1001bd2b
mov byte [ebp - 2], 3
jmp 0x1001b97a
push 4
lea eax, [ebp + 8]
push eax
push str.part
call fcn.10048195
add esp, 0xc
test al, al
je 0x1001bd4b
mov byte [ebp - 2], 2
jmp 0x1001b97a
push 3
lea eax, [ebp + 8]
push eax
push 0x100ca800
call fcn.10048195
add esp, 0xc
test al, al
je 0x1001bd6b
mov byte [ebp - 0x21], 1
jmp 0x1001b97a
push 4
lea eax, [ebp + 8]
push eax
push str.abak
call fcn.10048195
add esp, 0xc
test al, al
je 0x1001b970
mov byte [ebp - 0x19], 1
jmp 0x1001b97a
xor edi, edi
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
xor ecx, ecx
cmp ax, cx
jne 0x1001bda8
cmp dword [ebp - 0x20], ecx
jne 0x1001bda8
cmp byte [ebp - 0x13], cl
jne 0x1001be17
cmp dword [ebx + 0x14], ecx
jl 0x1001be17
jg 0x1001bdb4
cmp dword [ebx + 0x10], ecx
jbe 0x1001be17
cmp byte [ebp - 7], 0
jg 0x1001be17
cmp ax, cx
jne 0x1001bddd
mov cl, byte [esi + 0xc]
and cl, 1
cmp byte [ebp - 0x14], cl
jne 0x1001bddd
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], ecx
jne 0x1001bddd
test edi, edi
jne 0x1001be25
xor esi, esi
jmp 0x1001c41b
push dword [ebp - 0x44]
mov ecx, esi
push 0
push 0
push 5
push dword [ebp - 0x40]
call fcn.1001b361
mov esi, 0x100e3d7c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x44]
push 1
call fcn.10010a1c
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 5
pop esi
jmp 0x1001c41b
cmp byte [ebp - 4], 0
je 0x1001be25
cmp edi, ecx
je 0x1001c38e
cmp byte [esi + 0x90], 0
je 0x1001be37
test ax, ax
mov byte [ebp - 4], 1
jne 0x1001be3b
mov byte [ebp - 4], 0
cmp byte [ebp - 0x12], 0
je 0x1001be5f
test byte [esi + 0xc], 1
je 0x1001be5f
cmp byte [ebp - 0x22], 0
je 0x1001be5f
push dword [ebp - 0x44]
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x40]
mov ecx, esi
call fcn.1001b361
cmp byte [ebp - 4], 0
je 0x1001bf2c
lea ecx, [ebp - 0x4c]
mov byte [esi + 0x90], 0
call fcn.10046123
push str._CurFile_
lea ecx, [ebp - 0x34]
call fcn.100501eb
push 1
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x34]
mov ecx, esi
call fcn.10057b62
lea ecx, [ebp - 0x34]
call fcn.1003f96c
push str.ENTER:
lea ecx, [ebp - 0x18]
call fcn.100501eb
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x18]
call fcn.1004618f
test byte [esi + 0xc], 1
lea edi, [ebx + 4]
mov eax, dword [edi + 4]
mov dword [ebp - 0x34], eax
je 0x1001bedc
push dword [ebp - 0x44]
mov ecx, esi
push dword [ebp + 0xc]
push 0x11
push 0
push dword [ebp - 0x18]
call fcn.1001b361
jmp 0x1001beed
cmp dword [edi], 0
jne 0x1001beed
push 0x10000
mov ecx, edi
call fcn.10046168
mov eax, dword [ebp - 0x34]
mov ecx, dword [edi]
add eax, eax
add ecx, eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xc], eax
call fcn.1005026c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov eax, dword [edi]
and word [ecx + eax], 0
cmp byte [ebp - 0xd], 0
je 0x1001bf1c
mov byte [ebp - 0x12], 0
lea ecx, [ebp - 0x18]
call fcn.1003f96c
lea ecx, [ebp - 0x4c]
call fcn.1003f96c
push dword [ebp - 0x44]
push 1
call fcn.10010a1c
cmp byte [ebp - 0x13], 0
pop ecx
pop ecx
je 0x1001bf4d
cmp dword [ebp - 0x20], 0
jne 0x1001c38e
jmp 0x1001c418
cmp byte [ebp - 6], 0
je 0x1001bf83
mov ecx, dword [ebp + 8]
xor eax, eax
cmp word [ecx], ax
jne 0x1001bf83
mov ebx, dword [ebx]
xor ecx, ecx
cmp ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
je 0x1001c418
push 2
lea edx, [ebp - 0x30]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x1001c418
mov al, byte [ebx + 0x18]
or al, byte [ebp - 0x21]
je 0x1001c012
push 0
push 1
push 0x100c6a64
push 0x100c7fa0
mov ecx, esi
call fcn.1001520e
test eax, eax
je 0x1001c012
cmp dword [eax], 0
je 0x1001c012
add eax, 8
push 0x28
push eax
call fcn.10010b62
mov edx, eax
test edx, edx
pop ecx
pop ecx
je 0x1001c012
mov ecx, edx
call fcn.10010c51
mov dword [edx + 0x1c], ebx
xor eax, eax
lea edi, [edx + 0x14]
mov dword [edi], eax
mov cl, byte [ebx + 0x19]
mov byte [edx + 0x19], cl
mov dword [edi], eax
mov cl, byte [ebx + 0x18]
mov byte [edx + 0x18], cl
mov ecx, dword [ebx + 0x10]
mov dword [edx + 8], ecx
mov ecx, dword [ebx + 0x14]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebx]
push 0xffffffffffffffff
mov dword [edx + 0x10], ecx
push 0x100e3108
push str.__LOGS
mov ecx, esi
mov dword [ebx], eax
call fcn.100152b4
test eax, eax
je 0x1001c012
push dword [eax]
mov ecx, edi
call fcn.100502c8
mov eax, dword [ebx]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1001c028
push eax
call edi
sub dword [0x100e2e6c], 1
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
or dword [ebx + 0x14], 0xffffffff
cmp byte [ebp - 1], 3
mov dword [ebx + 0x10], 0xfff80000
mov byte [ebx + 0x18], al
jne 0x1001c074
mov ecx, dword [ebp + 8]
cmp word [ecx], ax
jne 0x1001c081
cmp dword [0x100e2cf8], eax
je 0x1001c074
push 0xffffffffffffffff
push 1
call fcn.10010a1c
pop ecx
pop ecx
push dword [0x100e2cf8]
call edi
and dword [0x100e2cf8], 0
sub dword [0x100e2e6c], 1
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x1001c372
cmp byte [ebp - 3], 0
mov cl, byte [ebx + 0x19]
setne al
and cl, 0xfe
or al, cl
cmp byte [ebp - 2], 0
mov byte [ebx + 0x19], al
je 0x1001c1c1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x108
lea edi, [eax + eax]
push edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x38], eax
call fcn.10046168
mov eax, dword [ebp - 0x60]
xor ecx, ecx
push ecx
add edi, eax
push edi
mov word [edi], cx
mov word [eax], cx
push 0x105
push dword [ebp + 8]
mov dword [ebp - 0x20], eax
call fcn.100469ca
mov ax, word [edi]
add esp, 0x10
test ax, ax
je 0x1001c1c1
cmp word [edi + 2], 0x3a
jne 0x1001c1c1
and word [ebp - 0x2a], 0
test byte [ebp - 2], 1
mov word [ebp - 0x30], ax
mov word [ebp - 0x2e], 0x3a
mov word [ebp - 0x2c], 0x5c
mov dword [ebp + 8], edi
je 0x1001c12e
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1001c12e
mov eax, dword [ebp - 0x20]
cmp word [eax], 0
jne 0x1001c19a
test byte [ebp - 2], 2
je 0x1001c1c1
push 0xf0
lea ecx, [ebp - 0xc]
call fcn.10046141
mov ax, word [edi]
mov ecx, dword [ebp - 0xc]
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
xor eax, eax
push eax
push eax
push eax
push 0xac
push 0xffffffffffffffff
mov word [ecx + 2], ax
lea eax, [ebp - 0xc]
push 0xffffffffffffffff
push eax
call fcn.100655b2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add esp, 0x1c
test ecx, ecx
jl 0x1001c1b9
mov eax, dword [eax + 4]
test eax, eax
jle 0x1001c1b9
push eax
push ecx
push str._Harddisk_uPartition_u_
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.1003f96c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add edi, 6
push edi
mov edi, dword [ebp - 0x20]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp + 8], edi
jmp 0x1001c1c1
lea ecx, [ebp - 0xc]
call fcn.1003f96c
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x18], eax
add eax, 0x9e
lea edi, [ebx + 4]
cmp dword [edi + 8], eax
jge 0x1001c1ed
mov eax, dword [ebp - 0x18]
add eax, 0x10008
push eax
mov ecx, edi
mov dword [edi + 8], eax
call fcn.10046168
mov eax, dword [edi]
and word [eax], 0
push dword [ebp + 8]
push str.CONOUT_
call fcn.10040e34
test al, al
pop ecx
pop ecx
mov byte [ebp - 0x14], al
je 0x1001c214
push 0x102
call fcn.10044158
pop ecx
xor eax, eax
xor ecx, ecx
cmp byte [ebp - 6], cl
push eax
setne cl
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 7
push 0x40000000
push dword [ebp + 8]
mov ecx, ebx
call fcn.10005b9d
mov cl, byte [ebp - 0x19]
neg eax
sbb eax, eax
neg eax
push eax
mov byte [ebx + 0x18], cl
call fcn.1003a28f
cmp dword [ebx], 0
pop ecx
mov dword [ebp - 0x38], eax
je 0x1001c27e
add dword [0x100e2e6c], 1
mov edx, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
cmp byte [ebp - 6], cl
mov dword [ebp - 0x5c], edx
je 0x1001c27e
push 2
lea edx, [ebp - 0x50]
push edx
push ecx
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp byte [ebp - 0x14], 0
jne 0x1001c2a6
xor eax, eax
cmp dword [ebp - 0x4c], eax
jg 0x1001c2a6
jl 0x1001c292
cmp dword [ebp - 0x50], eax
ja 0x1001c2a6
mov ecx, dword [edi]
mov word [ecx], 0xfeff
mov ecx, dword [edi]
mov word [ecx + 2], ax
mov dword [edi + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi]
inc eax
push eax
mov eax, dword [edi + 4]
push dword [ebp - 0x48]
lea eax, [ecx + eax*2]
push eax
call fcn.10005b3b
mov eax, dword [ebp - 0x18]
add dword [edi + 4], eax
add esp, 0xc
cmp byte [ebp - 0x12], 0
je 0x1001c2e5
test byte [esi + 0xc], 1
je 0x1001c2e5
push dword [ebp - 0x44]
mov ecx, esi
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x40]
call fcn.1001b361
mov eax, dword [ebx]
test eax, eax
je 0x1001c33d
test byte [0x100e34ac], 2
je 0x1001c33d
push eax
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
cmp ax, 0x55
mov dword [ebp - 0x40], eax
jl 0x1001c309
add word [ebp - 0x40], 0xfffb
cmp word [ebp - 0x3e], 0x1e
jl 0x1001c315
add word [ebp - 0x3e], 0xfffb
and word [ebp - 0x30], 0
and word [ebp - 0x2e], 0
mov eax, dword [ebp - 0x40]
dec eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x3e]
dec eax
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov edi, dword [ebp - 0x5c]
cmp word [edi], 0
je 0x1001c372
cmp byte [ebp - 2], 0
jne 0x1001c372
push 0x10e
lea ecx, [ebp - 0x48]
call fcn.10046168
push 0
push dword [ebp - 0x48]
push 0x105
push edi
call fcn.100469ca
mov eax, dword [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x5c]
mov ecx, 0x100e3108
push str.__LOGS
call fcn.100457c2
cmp dword [ebp - 0x38], 0
jne 0x1001c418
cmp byte [ebp - 8], 0
jl 0x1001c39f
mov al, byte [esi + 0xc]
xor al, byte [ebp - 8]
and al, 1
xor byte [esi + 0xc], al
mov al, byte [ebp - 0x25]
test al, al
jl 0x1001c3a9
mov byte [ebx + 0x19], al
mov al, byte [ebp - 0x10]
mov cl, byte [ebp - 0x11]
and al, 1
shl al, 1
and cl, 1
or al, cl
mov cl, byte [ebp - 0xe]
shl al, 1
and cl, 1
or al, cl
mov cl, byte [ebp - 0x26]
shl al, 1
and cl, 1
or al, cl
mov cl, byte [ebp - 0x24]
shl al, 1
and cl, 1
or al, cl
mov cl, byte [ebp - 5]
shl al, 1
and cl, 1
or al, cl
mov cl, byte [esi + 0xc]
shl al, 1
and cl, 0x81
or al, cl
mov byte [esi + 0xc], al
mov eax, dword [ebp - 0x54]
test eax, eax
jl 0x1001c407
jg 0x1001c3fc
cmp dword [ebp - 0x58], 0
jbe 0x1001c407
mov ecx, dword [ebp - 0x58]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
jmp 0x1001c418
cmp byte [ebp - 0x23], 0
je 0x1001c418
or dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 0x10], 0xfff80000
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x60]
call fcn.1003f96c
lea ecx, [ebp - 0x48]
call fcn.1003f96c
pop ebx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
leave
ret 8