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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0x4c9c14
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [esi + 0xd], 2
je 0x41c606
xor esi, esi
jmp 0x41d2a3
mov eax, dword [ebp + 8]
push ebx
add eax, 0xfffffff8
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x40], eax
call fcn.0040ea44
push dword [0x4c8b98]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 8]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
cmp ax, 0x2d
push 0x2a
pop edi
mov ebx, 0x4c8ca0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 6], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 8], 0
mov byte [ebp - 2], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 3], 0
mov byte [ebp - 4], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x2c], edi
jne 0x41c671
push 0x2d
pop edi
mov dword [ebp - 0x2c], edi
cmp ax, di
jne 0x41c6d0
cmp word [ecx + 2], di
jne 0x41c6d0
add ecx, 4
push 6
push ecx
push str.thread
mov dword [ebp - 0x38], ecx
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41c6b7
mov eax, dword [ebp + 8]
mov ax, word [eax + 0xc]
cmp ax, 0x2b
jne 0x41c6a9
mov byte [ebp - 1], 3
jmp 0x41c6be
cmp ax, 0x40
sete al
inc al
mov byte [ebp - 1], al
jmp 0x41c6be
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x38]
push eax
call fcn.00405444
pop ecx
mov ecx, dword [ebp - 0x38]
cmp word [ecx], di
je 0x41c676
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x14], ecx
je 0x41c6e3
cmp word [ecx], 0
mov byte [ebp - 5], 1
je 0x41c6e7
mov byte [ebp - 5], 0
cmp word [ecx], 0x2a
jne 0x41c70e
lea eax, [ecx + 2]
cmp word [eax], 0x3f
mov byte [ebp - 3], 1
mov dword [ebp - 0x14], eax
jne 0x41c706
inc eax
inc eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
call fcn.0040ea44
push dword [ebp - 0x14]
call fcn.00411f27
cmp byte [ebp - 3], 0
pop ecx
mov dword [ebp - 0x14], eax
je 0x41c730
cmp byte [ebp - 4], 0
jne 0x41c730
cmp word [eax], 0
mov byte [ebp - 0xe], 1
je 0x41c734
mov byte [ebp - 0xe], 0
xor edx, edx
cmp dword [ebp - 0x24], edx
jne 0x41c749
cmp word [eax], dx
jne 0x41c749
cmp byte [ebp - 1], dl
jne 0x41c749
mov byte [ebp - 1], 3
mov ecx, dword [ebp - 0x18]
cmp ecx, edx
jne 0x41c754
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
and al, 1
je 0x41c760
mov dword [ebp - 0x44], ecx
jmp 0x41c764
or dword [ebp - 0x44], 0xffffffff
test al, al
je 0x41c76a
mov ebx, ecx
test byte [esi + 0xc], 1
mov byte [ebp - 0x1c], 1
je 0x41c77c
cmp dword [ebx], edx
mov byte [ebp - 0xc], 1
jne 0x41c780
mov byte [ebp - 0xc], 0
test byte [ebp + 0xc], 1
je 0x41c792
and dword [ebp + 0xc], 0xfffffffe
mov byte [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
or dword [ebp - 0x54], 0xffffffff
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x58], 0xfff80000
mov edi, 0x4ae9fc
jne 0x41c7bb
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x14]
mov byte [ebp - 6], 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 - 0xb]
and dword [ebp - 0x38], 0
call fcn.0043fd9a
mov al, byte [esi + 0xc]
mov cl, al
and cl, 1
mov byte [ebp - 0x10], cl
mov cl, al
shr al, 2
and al, 1
mov byte [ebp - 0x25], 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 - 9], al
mov al, byte [esi + 0xc]
shr al, 5
and al, 1
mov byte [ebp - 0xd], al
mov al, byte [esi + 0xc]
xor edx, edx
shr cl, 1
shr al, 6
and cl, 1
and al, 1
push 0x4c9c14
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edx
mov byte [ebp - 7], 0xff
mov byte [ebp - 4], cl
mov byte [ebp - 0xf], al
mov byte [ebp - 0x1b], 0xff
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x4c], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x41c89b
mov cx, word [ebp - 0x2c]
cmp word [eax + 2], cx
jne 0x41c8a7
add eax, 4
inc dword [ebp - 0x18]
push 6
push eax
push str.thread
mov dword [ebp + 8], eax
call fcn.0043af58
add esp, 0xc
test al, al
jne 0x41c891
push 1
push dword [ebp + 8]
push 0x4b2784
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41c938
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x2d
jne 0x41c919
mov byte [ebp - 9], 0
lea eax, [ebp + 8]
push eax
call fcn.00405444
pop ecx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x2c]
cmp word [eax], cx
je 0x41c83e
push 0x4c9c14
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ax, word [eax]
test ax, ax
jne 0x41c8cf
cmp dword [ebp - 0x24], 0
jne 0x41c8cf
cmp byte [ebp - 0xe], al
jne 0x41ccca
cmp dword [ebx + 0x14], 0
jl 0x41ccca
jg 0x41c8e5
cmp dword [ebx + 0x10], 0
jbe 0x41ccca
cmp byte [ebp - 6], 0
jg 0x41ccca
test ax, ax
jne 0x41cc90
mov al, byte [esi + 0xc]
and al, 1
cmp byte [ebp - 0x10], al
jne 0x41cc90
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], eax
jne 0x41cc90
xor esi, esi
jmp 0x41d291
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, 1
or eax, dword [0x4c8fac]
jne 0x41c891
mov byte [ebp - 9], 1
jmp 0x41c891
push 5
push dword [ebp + 8]
push str.lock:
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41c9dc
inc byte [ebp - 0xa]
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
add dword [ebp + 8], 0xa
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0047c39d
mov eax, dword [ebx + 0x10]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jl 0x41c9ad
jg 0x41c980
test eax, eax
jbe 0x41c9ad
cmp byte [ebp - 6], 1
je 0x41c9ad
cmp byte [ebp - 0xa], 1
jne 0x41c891
cmp eax, dword [ebp - 0x34]
jne 0x41c891
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jne 0x41c891
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 6], 1
jmp 0x41c9bd
mov eax, dword [ebp - 0x30]
test eax, eax
jl 0x41c9c8
mov ecx, dword [ebp - 0x34]
jg 0x41c9bd
test ecx, ecx
jbe 0x41c9c8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
jmp 0x41c891
or dword [ebp - 0x54], 0xffffffff
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x58], 0xfff80000
jmp 0x41c891
push 3
push dword [ebp + 8]
push 0x4b2778
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41ca2d
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
cmp ax, 0x31
jb 0x41ca24
cmp ax, 0x39
ja 0x41ca24
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, 1
or eax, dword [0x4c8fac]
jne 0x41c891
mov byte [ebp - 0xf], 1
jmp 0x41c891
mov byte [ebp - 0xf], 0
jmp 0x41c891
push 1
push dword [ebp + 8]
push 0x4b2774
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41ca54
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x2d
setne byte [ebp - 0x25]
jmp 0x41c891
push 2
push dword [ebp + 8]
push 0x4b2770
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41ca7b
mov eax, dword [ebp + 8]
cmp word [eax + 4], 0x2d
setne byte [ebp - 0x26]
jmp 0x41c891
push 2
push dword [ebp + 8]
push 0x4b276c
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41cac3
mov eax, dword [ebp + 8]
mov ax, word [eax + 4]
cmp ax, 0x31
jb 0x41caba
cmp ax, 0x39
ja 0x41caba
cmp dword [0x4c8fac], 0
jne 0x41c891
mov byte [ebp - 0xd], 1
jmp 0x41c891
mov byte [ebp - 0xd], 0
jmp 0x41c891
push 4
push dword [ebp + 8]
push str.RAW
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41cb0b
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
cmp ax, 0x31
jb 0x41cb02
cmp ax, 0x39
ja 0x41cb02
cmp dword [0x4c8fac], 0
jne 0x41c891
mov byte [ebp - 4], 1
jmp 0x41c891
mov byte [ebp - 4], 0
jmp 0x41c891
push 3
push dword [ebp + 8]
push 0x4b2760
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41cb46
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
cmp ax, 0x31
jb 0x41cb39
cmp ax, 0x39
ja 0x41cb39
push 3
pop eax
jmp 0x41cb3b
xor eax, eax
mov byte [ebp - 3], al
mov byte [ebp - 0x1b], al
jmp 0x41c891
push 2
lea eax, [ebp + 8]
push eax
push 0x4b275c
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41cb66
mov byte [ebp - 3], 1
jmp 0x41c89b
push 3
lea eax, [ebp + 8]
push eax
push 0x4b2758
call fcn.00441bc4
add esp, 0xc
test al, al
jne 0x41cb5d
push 3
push dword [ebp + 8]
push 0x4b2754
call fcn.0043af58
add esp, 0xc
test al, al
je 0x41cbcc
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
inc dword [ebp - 0x4c]
cmp ax, 0x31
jb 0x41cbbf
cmp ax, 0x39
ja 0x41cbbf
cmp dword [0x4c8fac], 0
jne 0x41c891
mov byte [ebp - 7], 1
jmp 0x41c891
and byte [esi + 0xc], 0xfe
mov byte [ebp - 7], 0
jmp 0x41c891
push 1
lea eax, [ebp + 8]
push eax
push 0x4b2750
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41cbec
mov byte [ebp - 8], 1
jmp 0x41c89b
push 3
lea eax, [ebp + 8]
push eax
push 0x4b274c
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41cc0c
mov byte [ebp - 2], 1
jmp 0x41c89b
push 4
lea eax, [ebp + 8]
push eax
push str.vol
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41cc2c
mov byte [ebp - 2], 3
jmp 0x41c89b
push 4
lea eax, [ebp + 8]
push eax
push str.part
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41cc4c
mov byte [ebp - 2], 2
jmp 0x41c89b
push 3
lea eax, [ebp + 8]
push eax
push 0x4b2738
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41cc6c
mov byte [ebp - 0x1a], 1
jmp 0x41c89b
push 4
lea eax, [ebp + 8]
push eax
push str.abak
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x41c891
mov byte [ebp - 0x19], 1
jmp 0x41c89b
push dword [ebp - 0x44]
mov ecx, esi
push 0
push 0
push 5
push dword [ebp - 0x40]
call fcn.0041c2d3
mov esi, 0x4c9c14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x44]
push 1
call fcn.0040fb42
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 5
pop esi
jmp 0x41d291
cmp byte [ebp - 5], 0
jne 0x41d204
cmp byte [esi + 0x90], 0
je 0x41cce6
test ax, ax
mov byte [ebp - 5], 1
jne 0x41ccea
mov byte [ebp - 5], 0
cmp byte [ebp - 0xb], 0
je 0x41cd0e
test byte [esi + 0xc], 1
je 0x41cd0e
cmp byte [ebp - 0x1c], 0
je 0x41cd0e
push dword [ebp - 0x44]
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x40]
mov ecx, esi
call fcn.0041c2d3
cmp byte [ebp - 5], 0
je 0x41cde0
lea ecx, [ebp - 0x4c]
mov byte [esi + 0x90], 0
call fcn.0043fd9a
push str._CurFile_
lea ecx, [ebp - 0x2c]
call fcn.00448399
push 1
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.0044dca2
lea ecx, [ebp - 0x2c]
call fcn.00439cfd
push str.ENTER:
lea ecx, [ebp - 0x18]
call fcn.00448399
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x18]
call fcn.0043fe06
test byte [esi + 0xc], 1
lea edi, [ebx + 4]
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
je 0x41cd8b
push dword [ebp - 0x44]
mov ecx, esi
push dword [ebp + 0xc]
push 0x11
push 0
push dword [ebp - 0x18]
call fcn.0041c2d3
jmp 0x41cd9c
cmp dword [edi], 0
jne 0x41cd9c
push 0x10000
mov ecx, edi
call fcn.0043fddf
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edi]
add eax, eax
add ecx, eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], eax
call fcn.00448401
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], eax
mov eax, dword [edi]
and word [ecx + eax], 0
cmp byte [ebp - 0xc], 0
je 0x41cdcb
mov byte [ebp - 0xb], 0
lea ecx, [ebp - 0x18]
call fcn.00439cfd
lea ecx, [ebp - 0x4c]
call fcn.00439cfd
mov edi, 0x4ae9fc
push dword [ebp - 0x44]
push 1
call fcn.0040fb42
cmp byte [ebp - 0xe], 0
pop ecx
pop ecx
je 0x41ce01
cmp dword [ebp - 0x24], 0
jne 0x41d204
jmp 0x41d28e
mov al, byte [ebx + 0x18]
or al, byte [ebp - 0x1a]
je 0x41ce88
push 0
push 1
push edi
push 0x4afcf8
mov ecx, esi
call fcn.00413db1
test eax, eax
je 0x41ce88
cmp dword [eax], 0
je 0x41ce88
add eax, 8
push 0x28
push eax
call fcn.0040fc85
mov edx, eax
test edx, edx
pop ecx
pop ecx
je 0x41ce88
mov ecx, edx
call fcn.0040fcd7
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 0x4c9048
push str.__LOGS
mov ecx, esi
mov dword [ebx], eax
call fcn.00413e55
test eax, eax
je 0x41ce88
push dword [eax]
mov ecx, edi
call fcn.0044845d
mov eax, dword [ebx]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41ce9e
push eax
call edi
sub dword [0x4c8e14], 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 0x41ceea
mov ecx, dword [ebp + 8]
cmp word [ecx], ax
jne 0x41cef7
cmp dword [0x4c8ca0], eax
je 0x41ceea
push 0xffffffffffffffff
push 1
call fcn.0040fb42
pop ecx
pop ecx
push dword [0x4c8ca0]
call edi
and dword [0x4c8ca0], 0
sub dword [0x4c8e14], 1
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x41d1e8
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 0x41d037
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.0043fddf
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 - 0x24], eax
call fcn.004404f6
mov ax, word [edi]
add esp, 0x10
test ax, ax
je 0x41d037
cmp word [edi + 2], 0x3a
jne 0x41d037
and word [ebp - 0x2e], 0
test byte [ebp - 2], 1
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], 0x3a
mov word [ebp - 0x30], 0x5c
mov dword [ebp + 8], edi
je 0x41cfa4
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x41cfa4
mov eax, dword [ebp - 0x24]
cmp word [eax], 0
jne 0x41d010
test byte [ebp - 2], 2
je 0x41d037
push 0xf0
lea ecx, [ebp - 0x14]
call fcn.0043fdb8
mov ax, word [edi]
mov ecx, dword [ebp - 0x14]
mov word [ecx], ax
mov ecx, dword [ebp - 0x14]
xor eax, eax
push eax
push eax
push eax
push 0xac
push 0xffffffffffffffff
mov word [ecx + 2], ax
lea eax, [ebp - 0x14]
push 0xffffffffffffffff
push eax
call fcn.0045b094
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add esp, 0x1c
test ecx, ecx
jl 0x41d02f
mov eax, dword [eax + 4]
test eax, eax
jle 0x41d02f
push eax
push ecx
push str._Harddisk_uPartition_u_
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.00439cfd
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add edi, 6
push edi
mov edi, dword [ebp - 0x24]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp + 8], edi
jmp 0x41d037
lea ecx, [ebp - 0x14]
call fcn.00439cfd
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 0x41d063
mov eax, dword [ebp - 0x18]
add eax, 0x10008
push eax
mov ecx, edi
mov dword [edi + 8], eax
call fcn.0043fddf
mov eax, dword [edi]
and word [eax], 0
push dword [ebp + 8]
push str.CONOUT_
call fcn.0043af97
test al, al
pop ecx
pop ecx
mov byte [ebp - 0x10], al
je 0x41d08a
push 0x102
call fcn.0043e092
pop ecx
xor eax, eax
xor ecx, ecx
cmp byte [ebp - 8], 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.004054c4
mov cl, byte [ebp - 0x19]
neg eax
sbb eax, eax
neg eax
push eax
mov byte [ebx + 0x18], cl
call fcn.0043492e
cmp dword [ebx], 0
pop ecx
mov dword [ebp - 0x38], eax
je 0x41d0f4
add dword [0x4c8e14], 1
mov edx, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
cmp byte [ebp - 8], cl
mov dword [ebp - 0x5c], edx
je 0x41d0f4
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 - 0x10], 0
jne 0x41d11c
xor eax, eax
cmp dword [ebp - 0x4c], eax
jg 0x41d11c
jl 0x41d108
cmp dword [ebp - 0x50], eax
ja 0x41d11c
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.0040542c
mov eax, dword [ebp - 0x18]
add dword [edi + 4], eax
add esp, 0xc
cmp byte [ebp - 0xb], 0
je 0x41d15b
test byte [esi + 0xc], 1
je 0x41d15b
push dword [ebp - 0x44]
mov ecx, esi
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x40]
call fcn.0041c2d3
mov eax, dword [ebx]
test eax, eax
je 0x41d1b3
test byte [0x4c93ac], 2
je 0x41d1b3
push eax
call dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
cmp ax, 0x55
mov dword [ebp - 0x40], eax
jl 0x41d17f
add word [ebp - 0x40], 0xfffb
cmp word [ebp - 0x3e], 0x1e
jl 0x41d18b
add word [ebp - 0x3e], 0xfffb
and word [ebp - 0x34], 0
and word [ebp - 0x32], 0
mov eax, dword [ebp - 0x40]
dec eax
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x3e]
dec eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov edi, dword [ebp - 0x5c]
cmp word [edi], 0
je 0x41d1e8
cmp byte [ebp - 2], 0
jne 0x41d1e8
push 0x10e
lea ecx, [ebp - 0x48]
call fcn.0043fddf
push 0
push dword [ebp - 0x48]
push 0x105
push edi
call fcn.004404f6
mov eax, dword [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x5c]
mov ecx, 0x4c9048
push str.__LOGS
call fcn.0043f62b
cmp dword [ebp - 0x38], 0
jne 0x41d28e
cmp byte [ebp - 7], 0
jl 0x41d215
mov al, byte [esi + 0xc]
xor al, byte [ebp - 7]
and al, 1
xor byte [esi + 0xc], al
mov al, byte [ebp - 0x1b]
test al, al
jl 0x41d21f
mov byte [ebx + 0x19], al
mov al, byte [ebp - 0xf]
mov cl, byte [ebp - 0xd]
and al, 1
shl al, 1
and cl, 1
or al, cl
mov cl, byte [ebp - 9]
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 - 0x25]
shl al, 1
and cl, 1
or al, cl
mov cl, byte [ebp - 4]
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 0x41d27d
jg 0x41d272
cmp dword [ebp - 0x58], 0
jbe 0x41d27d
mov ecx, dword [ebp - 0x58]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
jmp 0x41d28e
cmp byte [ebp - 0x1d], 0
je 0x41d28e
or dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 0x10], 0xfff80000
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x60]
call fcn.00439cfd
lea ecx, [ebp - 0x48]
call fcn.00439cfd
pop edi
pop ebx
push 0x4c9c14
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
leave
ret 8