Function at 0x1003c05f
Capabilities:
Get disk information
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005b22d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 1
lea ecx, [esp + 0x78]
mov dword [esp + 0x44], edi
mov esi, edx
mov dword [esp + 0x34], ebx
call fcn.10001ba5
mov dword [esp + 0xc], 0xfffffffa
mov dword [esp + 0x28], 0xfffffff6
mov dword [esp + 0xc], ebx
jmp 0x1003c0c5
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x74]
mov dword [eax + ecx*4], 0xa8ea
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 1
jl 0x1003c0b2
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], bl
je 0x1003c0e2
push 0xcba
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0xc], ebx
jmp 0x1003c100
mov dword [esp + 0x28], 0x8876
mov dword [esp + 0x20], 0xfffffffe
dec dword [esp + 0x20]
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
jle 0x1003c0e8
lea ecx, [esp + 0x74]
call fcn.10001c28
call fcn.100399d6
push ecx
push eax
lea ecx, [esp + 0x50]
call fcn.1003c788
mov dword [esp + 0xbc], ebx
add esi, 0xfffff6b9
mov edx, dword [esp + 0x48]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x1003c162
cmp dword [eax + 0x10], esi
jge 0x1003c145
mov eax, dword [eax + 8]
jmp 0x1003c149
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1003c13b
cmp ecx, edx
je 0x1003c162
cmp esi, dword [ecx + 0x10]
jl 0x1003c162
mov dword [esp + 0x38], ecx
lea esi, [esp + 0x38]
jmp 0x1003c16a
mov dword [esp + 0x44], edx
lea esi, [esp + 0x44]
mov esi, dword [esi]
mov dword [esp + 0x10], 0xfffffffc
mov dword [esp + 0xc], 0xc1188e17
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 7
push 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], esi
pop ebx
jmp 0x1003c21a
mov dword [esp + 0x18], 0xeede0b40
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 0
jmp 0x1003c210
push 4
lea ecx, [esp + 0x54]
call fcn.10001ba5
mov dword [esp + 0x1c], 0x7249aaed
mov dword [esp + 0xc], 0
jmp 0x1003c1e2
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x50]
mov dword [eax + ecx*4], 0xfffffff9
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jl 0x1003c1cf
dec dword [esp + 0x1c]
xor edx, edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x50]
setne dl
mov dword [eax + 0xc], edx
call fcn.10001c28
inc dword [esp + 0x18]
cmp dword [esp + 0x18], ebx
jne 0x1003c1b2
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 7
jge 0x1003c198
mov dword [esp + 0xc], 0
jmp 0x1003c2d6
mov dword [esp + 0x18], 0xcf1c
lea ecx, [esp + 0x5c]
push 1
call fcn.10001ba5
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x1003c260
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x1dd2e91c
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jl 0x1003c24d
mov dword [esp + 0x10], edx
jmp 0x1003c27d
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x34], 0xffffffff
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 1
jl 0x1003c26d
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0xc]
jne 0x1003c294
cmp dword [esp + 0x18], edx
je 0x1003c298
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], edx
jne 0x1003c2b7
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.10001c28
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xb
jl 0x1003c232
mov eax, dword [0x1007c61c]
test al, 1
jne 0x1003c316
and dword [0x1007c614], 0
or eax, 1
mov dword [0x1007c61c], eax
xor eax, eax
push 0x1005b4a3
mov dword [0x1007c618], 7
mov word [0x1007c604], ax
call fcn.10042cdc
pop ecx
mov dword [esp + 0x10], 0xfffffff7
lea ecx, [esp + 0x68]
push 4
call fcn.10001ba5
mov dword [esp + 0x2c], 0x537c57f3
xor edx, edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0xc], edx
jmp 0x1003c354
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
mov dword [eax + ecx*4], 0x87df2f4a
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jl 0x1003c341
cmp dword [esp + 0x10], edx
je 0x1003c381
mov byte [esp + 0x17], dl
cmp byte [esp + 0x17], dl
je 0x1003c482
push edx
push 0x1c15
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x1003c482
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x9e520c3d
mov dword [esp + 0x10], edx
cmp dword [esp + 0x10], 3
jg 0x1003c482
mov dword [esp + 0x18], edx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x18], 3
jg 0x1003c467
mov dword [esp + 0xc], edx
jmp 0x1003c3c9
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x24], 6
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 1
jl 0x1003c3b9
mov dword [esp + 0x24], edx
jmp 0x1003c406
mov dword [esp + 0x1c], 0xb0a11721
xor ecx, ecx
mov eax, dword [esp + 0x10]
cmp eax, 1
setg cl
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x17], dl
cmp byte [esp + 0x17], 0
je 0x1003c402
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor edx, edx
inc dword [esp + 0x24]
cmp dword [esp + 0x24], 3
jle 0x1003c3d6
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x20], edx
jl 0x1003c42d
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x2c], edx
je 0x1003c431
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
push 0
cmp dword [ecx + eax*4], esi
sete dl
xor eax, eax
cmp edx, dword [ecx + edi*4]
pop edx
setle al
mov dword [esp + 0x1c], eax
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 3
jle 0x1003c3b3
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 3
jle 0x1003c3a0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x68]
call fcn.10001c28
cmp esi, dword [esp + 0x48]
je 0x1003c4b1
push dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x9c]
call fcn.10035bfc
pop ecx
xor ebx, ebx
mov byte [esp + 0xbc], 1
inc ebx
jmp 0x1003c4c9
push 0x1007c604
lea ecx, [esp + 0x84]
call fcn.10005509
mov dword [esp + 0xbc], ebx
push eax
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.10005509
or ebx, 4
test bl, 2
je 0x1003c4f0
push 0
push 1
lea ecx, [esp + 0x88]
and ebx, 0xfffffffd
call fcn.10005bc7
test bl, 1
je 0x1003c505
push 0
push 1
lea ecx, [esp + 0xa0]
call fcn.10005bc7
lea ecx, [esp + 0x48]
call fcn.10026975
mov ecx, dword [esp + 0xb4]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret