Function at 0x40d7e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5355bd
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x140]
xor ebx, ebx
mov dword [ebp - 0x27c], esi
cmp eax, ebx
je 0x40d827
cmp dword [eax + 0x20], ebx
jne 0x40d83d
push str.CDelDrvDlg::doExecuteUninstaller__param_error_n
push 2
call fcn.00403750
add esp, 8
xor eax, eax
jmp 0x40de93
push str.CDelDrvDlg::doExecuteUninstaller______________________IN_n
push 2
call fcn.00403750
mov eax, dword [esi + 0x20]
add esp, 8
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x274], 1
call fcn.0042cb3b
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0xc8]
mov dword [ebp - 0x28c], ecx
call fcn.0042cb3b
mov eax, dword [eax + 4]
add eax, 0xd0
push eax
lea ecx, [ebp - 0x2bc]
call fcn.0040cfb0
mov ecx, dword [ebp - 0x2b8]
mov edi, dword [ebp - 0x2bc]
sub ecx, edi
mov eax, 0x14f38f63
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x298], ebx
je 0x40de4f
add edi, 0x20c
mov dword [ebp - 0x294], edi
jmp 0x40d8e0
mov esi, dword [ebp - 0x294]
mov eax, dword [esi - 0x20c]
sub eax, 0
mov dword [ebp - 0x288], 0
je 0x40d939
dec eax
je 0x40d91d
dec eax
jne 0x40d953
mov ecx, dword [ebp - 0x27c]
push 0x7d2
call fcn.0040c700
mov dword [ebp - 0x288], 0xfa2
jmp 0x40d953
mov ecx, dword [ebp - 0x27c]
push 0x7d4
call fcn.0040c700
mov dword [ebp - 0x288], 0xfa5
jmp 0x40d953
mov ecx, dword [ebp - 0x27c]
push 0x7d1
call fcn.0040c700
mov dword [ebp - 0x288], 0xfa4
xor eax, eax
lea ecx, [esi - 0x208]
mov word [ebp - 0x270], ax
mov ebx, 7
mov eax, ecx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x260], 0
lea edi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40d980
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x270]
call fcn.00401dd0
xor ecx, ecx
mov eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], cx
lea edx, [eax + 2]
xor edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40d9c0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x254]
call fcn.00401dd0
lea ecx, [esi + 0x208]
xor edx, edx
mov eax, ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x40da00
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x238]
call fcn.00401dd0
mov eax, dword [ebp - 0x270]
mov esi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x25c], esi
jae 0x40da39
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40dda0
call fcn.0042cb3b
mov ecx, dword [eax + 4]
call fcn.0042cf67
mov byte [ebp - 4], 4
call fcn.0042aa6c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40deaf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 5
call fcn.0042aa6c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40deaf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x238]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x224], esi
jae 0x40dac2
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x254]
cmp dword [ebp - 0x240], esi
jae 0x40dad6
lea eax, [ebp - 0x254]
mov edx, dword [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x29c]
push eax
push ecx
push edx
lea eax, [ebp - 0x290]
push eax
call fcn.00404ae0
add esp, 0x14
cmp dword [ebp - 0x25c], esi
jb 0x40db0b
mov edx, dword [ebp - 0x270]
cmp edx, edi
jne 0x40db11
xor eax, eax
jmp 0x40db25
lea edx, [ebp - 0x270]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40db16
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x278]
call fcn.00401bc0
push 1
push 0x5453c8
lea ecx, [ebp - 0x278]
call fcn.004049b0
mov ecx, dword [ebp - 0x290]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x278]
call fcn.004049b0
push 0x44
lea ecx, [ebp - 0x300]
push edi
push ecx
call fcn.0051eb70
push 0x20a
lea edx, [ebp - 0x21c]
push edi
push edx
mov dword [ebp - 0x300], 0x44
call fcn.0051eb70
mov edx, dword [ebp - 0x278]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0x18
or ecx, eax
jge 0x40dbaf
push edi
lea ecx, [ebp - 0x278]
call fcn.004015a0
mov edx, dword [ebp - 0x278]
push edx
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.0051e2ba
lea ecx, [ebp - 0x21c]
push ecx
push str.CDelDrvDlg::doExecuteUninstaller__szCmdLine____1_s____n
push 5
call fcn.00403750
mov eax, dword [ebp - 0x27c]
mov edx, dword [eax + 0x20]
add esp, 0x18
xor ebx, ebx
push edx
mov dword [eax + 0xc4], 0x63
mov dword [eax + 0xc8], ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor edx, edx
mov eax, 0x64
div dword [ebp - 0x284]
mov edi, dword [ebp - 0x298]
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x21c]
mov esi, eax
imul esi, edi
inc edi
imul edi, eax
lea eax, [ebp - 0x2ac]
push eax
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40dd86
mov eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x2ac]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
call fcn.0040c100
cmp esi, edi
jge 0x40dc91
mov edx, dword [ebp - 0x27c]
mov eax, dword [edx + 0x160]
push 0
inc esi
push esi
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 0x102
je 0x40dc50
mov ecx, dword [ebp - 0x2ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
xor ebx, ebx
mov edi, edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc4]
mov ecx, eax
sub ecx, 0
je 0x40dce4
dec ecx
mov dword [ebp - 0x274], 0
je 0x40dcee
cmp eax, 0x63
jne 0x40dcee
mov edx, ebx
inc ebx
cmp edx, 0x64
jl 0x40dcb0
jmp 0x40dcee
mov dword [ebp - 0x274], 1
push eax
push str.CDelDrvDlg::doExecuteUninstaller__nExitCode___1_d__n
push 4
call fcn.00403750
mov eax, dword [esi + 0x160]
add esp, 0xc
push 0
push edi
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x274], 0
jne 0x40dd29
cmp dword [ebp - 0x288], 0
jne 0x40deb9
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x27d]
mov byte [ebp - 4], 3
call fcn.0040c890
jmp 0x40dda6
push str._CreateProcess___is_missing_n
push 2
call fcn.00403750
add esp, 8
mov dword [ebp - 0x274], ebx
jmp 0x40dd1c
mov dword [ebp - 0x274], edi
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x40ddc2
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00429e6f
add esp, 4
xor edi, edi
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
cmp dword [ebp - 0x240], esi
jb 0x40ddf5
mov eax, dword [ebp - 0x254]
push eax
call fcn.00429e6f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x25c], esi
jb 0x40de24
mov edx, dword [ebp - 0x270]
push edx
call fcn.00429e6f
add esp, 4
mov eax, dword [ebp - 0x298]
add dword [ebp - 0x294], 0x61c
inc eax
mov dword [ebp - 0x298], eax
cmp eax, dword [ebp - 0x284]
jb 0x40d8e0
cmp dword [ebp - 0x274], edi
je 0x40de6b
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax + 0x160]
push 0
push 0x64
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push str.CDelDrvDlg::doExecuteUninstaller______________________OUT_n
push 2
call fcn.00403750
mov eax, dword [ebp - 0x2bc]
add esp, 8
test eax, eax
je 0x40de8d
push eax
call fcn.00429e6f
add esp, 4
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004010e0
mov esi, dword [0x5a2050]
mov ebx, dword [ebp - 0x288]
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x29c]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x28c], ebx
call fcn.00404940
mov eax, dword [eax]
cmp eax, dword [esi + 8]
je 0x40def3
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x284], edx
jmp 0x40defd
mov dword [ebp - 0x284], 0
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x28c], ebx
call fcn.00404940
mov eax, dword [eax]
cmp eax, dword [esi + 8]
je 0x40df25
mov eax, dword [eax + 0x10]
jmp 0x40df27
xor eax, eax
mov edx, dword [ebp - 0x284]
mov ecx, dword [ebp - 0x27c]
push edx
push eax
push ebx
call fcn.0040ce30
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x27d]
mov byte [ebp - 4], 3
call fcn.0040c890
mov esi, 8
cmp dword [ebp - 0x224], esi
jb 0x40dfb2
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00429e6f
add esp, 4
xor edi, edi
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], edi
mov word [ebp - 0x238], dx
cmp dword [ebp - 0x240], esi
jb 0x40dfe5
mov eax, dword [ebp - 0x254]
push eax
call fcn.00429e6f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x25c], esi
jb 0x40de6b
mov edx, dword [ebp - 0x270]
push edx
call fcn.00429e6f
add esp, 4
jmp 0x40de6b