Function at 0x41af1e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
mov edi, 0x4beb4c
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test byte [esi + 0xd], 2
je 0x41af41
xor esi, esi
jmp 0x41bb1e
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
lea ecx, [ebp + 8]
mov dword [ebp - 0x2c], eax
call fcn.0040de83
test byte [esi + 0xc], 1
mov byte [ebp - 0x1d], 0
mov byte [ebp - 6], 0
mov byte [ebp - 1], 0
je 0x41af71
cmp dword [0x4bde94], 0
mov byte [ebp - 0x19], 1
jne 0x41af75
mov byte [ebp - 0x19], 0
or dword [ebp - 0x44], 0xffffffff
cmp dword [ebp + 0xc], 0xffffffff
push ebx
mov byte [ebp - 0xd], 0
mov byte [ebp - 3], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x48], 0xfff80000
mov ebx, 0x4a39d4
jne 0x41afb3
mov eax, dword [0x4bc2b8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x4bc2bc]
mov byte [ebp - 6], 2
mov dword [ebp - 0x44], eax
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp word [ecx], ax
lea ecx, [ebp - 0x38]
setne byte [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], al
mov byte [ebp - 2], al
mov dword [ebp - 0x50], eax
call fcn.0043d47d
mov al, byte [esi + 0xc]
mov cl, al
and cl, 1
mov byte [ebp - 0x12], cl
mov cl, al
shr al, 2
and al, 1
mov byte [ebp - 0x1a], al
mov al, byte [esi + 0xc]
shr al, 3
and al, 1
mov byte [ebp - 0x1b], al
mov al, byte [esi + 0xc]
shr al, 4
and al, 1
mov byte [ebp - 0x11], al
mov al, byte [esi + 0xc]
mov dword [ebp - 0x4c], ebx
mov bl, byte [esi + 0xc]
xor edx, edx
shr cl, 1
shr al, 5
and cl, 1
and al, 1
shr bl, 6
push edi
mov dword [ebp - 0x54], edx
mov byte [ebp - 5], 0xff
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xf], al
and bl, 1
mov byte [ebp - 0x13], 0xff
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x3c], edx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [ebp + 8]
mov ax, word [ecx]
cmp ax, 0x2d
mov dword [ebp - 0xc], 0x2a
jne 0x41b051
mov dword [ebp - 0xc], 0x2d
cmp ax, word [ebp - 0xc]
jne 0x41b0af
mov ax, word [ebp - 0xc]
cmp word [ecx + 2], ax
jne 0x41b0af
xor eax, eax
inc eax
add ecx, 4
inc dword [ebp - 0x24]
push eax
push ecx
push 0x4a75b8
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], ecx
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b1a1
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x2d
jne 0x41b17f
mov byte [ebp - 0x11], 0
lea eax, [ebp + 8]
push eax
call fcn.0040507c
pop ecx
mov ecx, dword [ebp + 8]
mov ax, word [ebp - 0xc]
cmp word [ecx], ax
je 0x41b057
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
je 0x41b0c9
cmp word [eax], 0
mov byte [ebp - 1], 1
je 0x41b0cd
mov byte [ebp - 1], 0
cmp word [eax], 0x2a
jne 0x41b0f3
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x3f
mov byte [ebp - 4], 1
jne 0x41b0eb
inc eax
inc eax
mov byte [ebp - 2], 1
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.0040de83
push dword [ebp + 8]
call fcn.0041113a
cmp byte [ebp - 4], 0
pop ecx
mov dword [ebp + 8], eax
je 0x41b115
cmp byte [ebp - 2], 0
jne 0x41b115
cmp word [eax], 0
mov byte [ebp - 2], 1
je 0x41b119
mov byte [ebp - 2], 0
mov ax, word [eax]
xor ecx, ecx
cmp ax, cx
jne 0x41b131
cmp dword [ebp - 0x18], ecx
jne 0x41b131
cmp byte [ebp - 2], cl
jne 0x41b533
cmp dword [0x4bc2bc], ecx
jl 0x41b533
jg 0x41b14b
cmp dword [0x4bc2b8], ecx
jbe 0x41b533
cmp byte [ebp - 6], 0
jg 0x41b533
cmp ax, cx
jne 0x41b505
mov al, byte [esi + 0xc]
and al, 1
cmp byte [ebp - 0x12], al
jne 0x41b505
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x24], eax
jne 0x41b505
xor esi, esi
jmp 0x41bb0d
movsx ecx, byte [0x4bdf30]
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, 1
or eax, ecx
jne 0x41b099
mov byte [ebp - 0x11], 1
jmp 0x41b099
push 5
push dword [ebp + 8]
push str.lock:
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b24c
inc byte [ebp - 1]
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.0047e0f0
mov eax, dword [0x4bc2bc]
test eax, eax
pop ecx
pop ecx
jl 0x41b21d
mov ecx, dword [0x4bc2b8]
jg 0x41b1ee
test ecx, ecx
jbe 0x41b21d
cmp byte [ebp - 6], 1
je 0x41b21d
cmp byte [ebp - 1], 1
jne 0x41b099
mov edx, dword [ebp - 0x34]
cmp ecx, edx
jne 0x41b099
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jne 0x41b099
mov byte [ebp - 6], 1
mov dword [ebp - 0x48], edx
jmp 0x41b230
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jl 0x41b238
mov eax, dword [ebp - 0x34]
jg 0x41b22d
test eax, eax
jbe 0x41b238
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x41b099
or dword [ebp - 0x44], 0xffffffff
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x48], 0xfff80000
jmp 0x41b099
push 3
push dword [ebp + 8]
push 0x4a75ac
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b29c
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
cmp ax, 0x31
jb 0x41b295
cmp ax, 0x39
ja 0x41b295
movsx ecx, byte [0x4bdf30]
xor eax, eax
mov al, byte [esi + 0xd]
shr eax, 1
and eax, 1
or eax, ecx
jne 0x41b099
mov bl, 1
jmp 0x41b099
xor bl, bl
jmp 0x41b099
push 1
push dword [ebp + 8]
push 0x4a75a8
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b2c3
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x2d
setne byte [ebp - 0x1a]
jmp 0x41b099
push 2
push dword [ebp + 8]
push 0x4a75a4
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b2ea
mov eax, dword [ebp + 8]
cmp word [eax + 4], 0x2d
setne byte [ebp - 0x1b]
jmp 0x41b099
push 2
push dword [ebp + 8]
push 0x4a75a0
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b332
mov eax, dword [ebp + 8]
mov ax, word [eax + 4]
cmp ax, 0x31
jb 0x41b329
cmp ax, 0x39
ja 0x41b329
cmp byte [0x4bdf30], 0
jne 0x41b099
mov byte [ebp - 0xf], 1
jmp 0x41b099
mov byte [ebp - 0xf], 0
jmp 0x41b099
push 4
push dword [ebp + 8]
push str.RAW
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b37a
mov eax, dword [ebp + 8]
mov ax, word [eax + 8]
cmp ax, 0x31
jb 0x41b371
cmp ax, 0x39
ja 0x41b371
cmp byte [0x4bdf30], 0
jne 0x41b099
mov byte [ebp - 0xe], 1
jmp 0x41b099
mov byte [ebp - 0xe], 0
jmp 0x41b099
push 3
push dword [ebp + 8]
push 0x4a7594
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b3b5
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
cmp ax, 0x31
jb 0x41b3a8
cmp ax, 0x39
ja 0x41b3a8
push 3
pop eax
jmp 0x41b3aa
xor eax, eax
mov byte [ebp - 4], al
mov byte [ebp - 0x13], al
jmp 0x41b099
push 2
lea eax, [ebp + 8]
push eax
push 0x4a7590
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b3d5
mov byte [ebp - 4], 1
jmp 0x41b0a3
push 3
lea eax, [ebp + 8]
push eax
push 0x4a758c
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b3f2
mov byte [ebp - 2], 1
jmp 0x41b3cc
push 3
push dword [ebp + 8]
push 0x4a7588
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x41b441
mov eax, dword [ebp + 8]
mov ax, word [eax + 6]
inc dword [ebp - 0x3c]
cmp ax, 0x31
jb 0x41b434
cmp ax, 0x39
ja 0x41b434
cmp byte [0x4bdf30], 0
jne 0x41b099
mov byte [ebp - 5], 1
jmp 0x41b099
and byte [esi + 0xc], 0xfe
mov byte [ebp - 5], 0
jmp 0x41b099
push 1
lea eax, [ebp + 8]
push eax
push 0x4a7584
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b461
mov byte [ebp - 0xd], 1
jmp 0x41b0a3
push 3
lea eax, [ebp + 8]
push eax
push 0x4a7580
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b481
mov byte [ebp - 3], 1
jmp 0x41b0a3
push 4
lea eax, [ebp + 8]
push eax
push str.vol
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b4a1
mov byte [ebp - 3], 3
jmp 0x41b0a3
push 4
lea eax, [ebp + 8]
push eax
push str.part
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b4c1
mov byte [ebp - 3], 2
jmp 0x41b0a3
push 3
lea eax, [ebp + 8]
push eax
push 0x4a756c
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b4e1
mov byte [ebp - 0x1c], 1
jmp 0x41b0a3
push 4
lea eax, [ebp + 8]
push eax
push str.abak
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x41b099
mov byte [ebp - 0x14], 1
jmp 0x41b0a3
push 0
push 0
push 5
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.0041abe7
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 1
call fcn.0040ed86
pop ecx
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 5
pop esi
jmp 0x41bb0d
cmp byte [ebp - 1], 0
jne 0x41ba76
xor edi, edi
cmp byte [esi + 0x90], 0
je 0x41b551
cmp ax, di
mov byte [ebp - 1], 1
jne 0x41b555
mov byte [ebp - 1], 0
cmp byte [ebp - 0x10], 0
je 0x41b56e
test byte [esi + 0xc], 1
je 0x41b56e
push edi
push edi
push edi
push dword [ebp - 0x2c]
mov ecx, esi
call fcn.0041abe7
cmp byte [ebp - 1], 0
je 0x41b63f
lea ecx, [ebp - 0x3c]
mov byte [esi + 0x90], 0
call fcn.0043d47d
push str._CurFile_
lea ecx, [ebp - 0xc]
call fcn.004457e4
push 1
push edi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0xc]
mov ecx, esi
call fcn.0044b30d
lea ecx, [ebp - 0xc]
call fcn.00437960
push 0x4a753c
lea ecx, [ebp - 0x24]
call fcn.004457e4
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
call fcn.0043d4e9
test byte [esi + 0xc], 1
mov eax, dword [0x4bdf90]
mov dword [ebp - 0xc], eax
je 0x41b5e5
push dword [ebp + 0xc]
mov ecx, esi
push 0x11
push edi
push dword [ebp - 0x24]
call fcn.0041abe7
jmp 0x41b5fc
cmp dword [0x4bdf8c], edi
jne 0x41b5fc
push 0x10000
mov ecx, 0x4bdf8c
call fcn.0043d4c2
mov edi, dword [ebp - 0xc]
mov eax, dword [0x4bdf8c]
add edi, edi
add eax, edi
push eax
lea ecx, [ebp - 0x38]
call fcn.0044584c
mov eax, dword [ebp - 0xc]
mov dword [0x4bdf90], eax
mov eax, dword [0x4bdf8c]
and word [edi + eax], 0
cmp byte [ebp - 0x19], 0
je 0x41b62d
mov byte [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
call fcn.00437960
lea ecx, [ebp - 0x3c]
call fcn.00437960
xor edi, edi
push 1
call fcn.0040ed86
cmp byte [ebp - 2], 0
pop ecx
je 0x41b65b
cmp dword [ebp - 0x18], edi
jne 0x41ba76
jmp 0x41bb05
mov al, byte [0x4bdf31]
or al, byte [ebp - 0x1c]
je 0x41b709
push 0
push 1
push 0x4a39d4
push 0x4a7538
mov ecx, esi
call fcn.00412db7
test eax, eax
je 0x41b709
cmp dword [eax], 0
je 0x41b709
add eax, 8
push 0x20
push eax
call fcn.0040eec0
mov edx, eax
test edx, edx
pop ecx
pop ecx
je 0x41b709
mov ecx, edx
call fcn.0040eefd
xor eax, eax
lea edi, [edx + 0x14]
mov dword [edi], eax
mov cl, byte [0x4c1012]
mov byte [edx + 5], cl
mov dword [edi], eax
mov cl, byte [0x4bdf30]
mov byte [edx + 6], cl
mov cl, byte [0x4bdf31]
mov byte [edx + 4], cl
mov ecx, dword [0x4bc2b8]
mov dword [edx + 8], ecx
mov ecx, dword [0x4bc2bc]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x4bde94]
push 0xffffffffffffffff
mov dword [edx + 0x10], ecx
push 0x4bdfa0
push str.__LOGS
mov ecx, esi
mov dword [0x4bde94], eax
call fcn.00412e5b
test eax, eax
je 0x41b709
push dword [eax]
mov ecx, edi
call fcn.004458a8
mov eax, dword [0x4bde94]
test eax, eax
je 0x41b719
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
and dword [0x4bde94], 0
and dword [0x4bdf90], 0
or dword [0x4bc2bc], 0xffffffff
mov dword [0x4bc2b8], 0xfff80000
mov byte [0x4bdf31], 0
cmp word [edi], 0
je 0x41ba59
cmp byte [ebp - 4], 0
mov cl, byte [0x4c1012]
setne al
and cl, 0xfe
or al, cl
cmp byte [ebp - 3], 0
mov byte [0x4c1012], al
je 0x41b88f
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, 0x108
lea edi, [eax + eax]
push edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], eax
call fcn.0043d4c2
mov eax, dword [ebp - 0x54]
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 - 0xc], eax
call fcn.0043dbbd
mov ax, word [edi]
add esp, 0x10
test ax, ax
je 0x41b88f
cmp word [edi + 2], 0x3a
jne 0x41b88f
and word [ebp - 0x2e], 0
test byte [ebp - 3], 1
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], 0x3a
mov word [ebp - 0x30], 0x5c
mov dword [ebp + 8], edi
je 0x41b7fc
push dword [ebp - 0x50]
lea eax, [ebp - 0x34]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x41b7fc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
jne 0x41b868
test byte [ebp - 3], 2
je 0x41b88f
push 0xf0
lea ecx, [ebp - 0x18]
call fcn.0043d49b
mov ax, word [edi]
mov ecx, dword [ebp - 0x18]
mov word [ecx], ax
mov ecx, dword [ebp - 0x18]
xor eax, eax
push eax
push eax
push eax
push 0xac
push 0xffffffffffffffff
mov word [ecx + 2], ax
lea eax, [ebp - 0x18]
push 0xffffffffffffffff
push eax
call fcn.004585df
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
add esp, 0x1c
test ecx, ecx
jl 0x41b887
mov eax, dword [eax + 4]
test eax, eax
jle 0x41b887
push eax
push ecx
push str._Harddisk_uPartition_u_
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.00437960
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add edi, 6
push edi
mov edi, dword [ebp - 0xc]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov dword [ebp + 8], edi
jmp 0x41b88f
lea ecx, [ebp - 0x18]
call fcn.00437960
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea ecx, [eax + 0x9e]
cmp dword [0x4bdf94], ecx
mov dword [ebp - 0x24], eax
jge 0x41b8be
add eax, 0x10008
push eax
mov ecx, 0x4bdf8c
mov dword [0x4bdf94], eax
call fcn.0043d4c2
mov eax, dword [0x4bdf8c]
xor edi, edi
mov word [eax], di
push dword [ebp + 8]
push str.CONOUT_
call fcn.00438bce
test al, al
pop ecx
pop ecx
mov byte [ebp - 0x12], al
je 0x41b8e9
push 0x102
call fcn.0043b976
pop ecx
xor eax, eax
cmp byte [ebp - 0xd], al
push edi
setne al
push edi
mov ecx, 0x4bde94
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
lea eax, [eax + eax + 2]
push eax
push edi
push 7
push 0x40000000
push dword [ebp + 8]
call fcn.0040511c
mov cl, byte [ebp - 0x14]
neg eax
sbb eax, eax
neg eax
push eax
mov byte [0x4bdf31], cl
call fcn.00432a01
mov dword [ebp - 0x50], eax
mov eax, dword [0x4bde94]
cmp eax, edi
pop ecx
je 0x41b953
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp byte [ebp - 0xd], cl
mov dword [ebp - 0x4c], edx
je 0x41b953
push 2
lea edx, [ebp - 0x40]
push edx
xor edx, edx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
cmp byte [ebp - 0x12], 0
jne 0x41b982
cmp dword [ebp - 0x3c], edi
jg 0x41b982
jl 0x41b965
cmp dword [ebp - 0x40], edi
ja 0x41b982
mov eax, dword [0x4bdf8c]
mov word [eax], 0xfeff
mov eax, dword [0x4bdf8c]
mov word [eax + 2], di
mov dword [0x4bdf90], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x4bdf90]
inc eax
push eax
mov eax, dword [0x4bdf8c]
push dword [ebp - 0x38]
lea eax, [eax + ecx*2]
push eax
call fcn.00405064
mov eax, dword [ebp - 0x24]
add dword [0x4bdf90], eax
add esp, 0xc
cmp byte [ebp - 0x10], 0
je 0x41b9c5
test byte [esi + 0xc], 1
je 0x41b9c5
push dword [ebp + 0xc]
mov ecx, esi
push edi
push edi
push dword [ebp - 0x2c]
call fcn.0041abe7
mov eax, dword [0x4bde94]
cmp eax, edi
je 0x41ba22
test byte [0x4be308], 2
je 0x41ba22
push eax
call dword [sym.imp.KERNEL32.DLL_GetLargestConsoleWindowSize]
cmp ax, 0x55
mov dword [ebp - 0x2c], eax
jl 0x41b9ec
add word [ebp - 0x2c], 0xfffb
cmp word [ebp - 0x2a], 0x1e
jl 0x41b9f8
add word [ebp - 0x2a], 0xfffb
mov eax, dword [ebp - 0x2c]
dec eax
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x2a]
dec eax
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x34]
push eax
push 1
push dword [0x4bde94]
mov word [ebp - 0x34], di
mov word [ebp - 0x32], di
call dword [sym.imp.KERNEL32.DLL_SetConsoleWindowInfo]
mov eax, dword [ebp - 0x4c]
cmp word [eax], di
je 0x41ba5b
cmp byte [ebp - 3], 0
jne 0x41ba5b
push 0x10e
lea ecx, [ebp - 0x38]
call fcn.0043d4c2
push edi
push dword [ebp - 0x38]
push 0x105
push dword [ebp - 0x4c]
call fcn.0043dbbd
mov eax, dword [ebp - 0x38]
add esp, 0x10
mov dword [ebp - 0x4c], eax
jmp 0x41ba5b
xor edi, edi
push dword [ebp - 0x4c]
mov ecx, 0x4bdfa0
push str.__LOGS
call fcn.0043cd78
cmp dword [ebp - 0x50], edi
jne 0x41bb05
cmp byte [ebp - 5], 0
jl 0x41ba87
mov al, byte [esi + 0xc]
xor al, byte [ebp - 5]
and al, 1
xor byte [esi + 0xc], al
mov al, byte [ebp - 0x13]
test al, al
jl 0x41ba93
mov byte [0x4c1012], al
mov al, byte [ebp - 0xf]
and bl, 1
and al, 1
shl bl, 1
or bl, al
mov al, byte [ebp - 0x11]
and al, 1
shl bl, 1
or bl, al
mov al, byte [ebp - 0x1b]
and al, 1
shl bl, 1
or bl, al
mov al, byte [ebp - 0x1a]
and al, 1
shl bl, 1
or bl, al
mov al, byte [ebp - 0xe]
and al, 1
shl bl, 1
or bl, al
mov al, byte [esi + 0xc]
and al, 0x81
shl bl, 1
or bl, al
mov eax, dword [ebp - 0x44]
test eax, eax
mov byte [esi + 0xc], bl
jl 0x41baee
jg 0x41bade
cmp dword [ebp - 0x48], 0
jbe 0x41baee
mov ecx, dword [ebp - 0x48]
mov dword [0x4bc2b8], ecx
mov dword [0x4bc2bc], eax
jmp 0x41bb05
cmp byte [ebp - 0x1d], 0
je 0x41bb05
or dword [0x4bc2bc], 0xffffffff
mov dword [0x4bc2b8], 0xfff80000
mov esi, dword [ebp - 0x50]
mov edi, 0x4beb4c
lea ecx, [ebp - 0x54]
call fcn.00437960
lea ecx, [ebp - 0x38]
call fcn.00437960
pop ebx
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
leave
ret 8