Function at 0x40f1a0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497e73
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x4c30e4]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [edi]
cmp dword [esi - 0xc], 0
je 0x40f388
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x40f388
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00451e80
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
lea eax, [ebp - 0x218]
je 0x40f24a
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x40f28b
mov esi, dword [edi]
lea ecx, [ebp - 0x218]
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40f27e
movzx eax, word [ecx + esi]
test ax, ax
je 0x40f27e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40f260
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f3a8
call fcn.0044db80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40f388
push 0x4a
push str.d:jenkins.jenkinsworkspace_aicleaner_rundllpop_popex_rundll_runner.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.0040fe50
push 3
push 0x4a2d94
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040fe50
mov byte [ebp - 4], 1
call fcn.0044db80
mov edi, eax
lea ecx, [ebp - 0x36c]
push 0x20
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0040dd70
mov esi, eax
push 0x4a2d98
push esi
mov byte [ebp - 4], 2
call fcn.0040d800
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040d800
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x36c]
call fcn.0040ec90
lea ecx, [ebp - 0x230]
call fcn.0040e790
lea ecx, [ebp - 0x248]
call fcn.0040e790
xor eax, eax
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.0044f149
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x218]
push eax
call fcn.00414d40
add esp, 4
test eax, eax
jne 0x40f4a3
call fcn.0044db80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40f388
push 0x4a
push str.d:jenkins.jenkinsworkspace_aicleaner_rundllpop_popex_rundll_runner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040fe50
push 3
push 0x4a2d94
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040fe50
mov byte [ebp - 4], 4
call fcn.0044db80
mov edi, eax
lea ecx, [ebp - 0x36c]
push 0x25
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040dd70
mov esi, eax
mov byte [ebp - 4], 5
push str.HasMsSign_Failed:
push esi
call fcn.0040d800
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040d800
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x36c]
call fcn.0040ec90
lea ecx, [ebp - 0x248]
call fcn.0040e790
lea ecx, [ebp - 0x230]
jmp 0x40f383
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2d4], eax
test eax, eax
jne 0x40f56c
call fcn.0044db80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40f388
push 0x4a
push str.d:jenkins.jenkinsworkspace_aicleaner_rundllpop_popex_rundll_runner.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.0040fe50
push 3
push 0x4a2d94
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 6
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040fe50
mov byte [ebp - 4], 7
call fcn.0044db80
mov edi, eax
lea ecx, [ebp - 0x36c]
push 0x2c
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040dd70
mov esi, eax
mov byte [ebp - 4], 8
push str.LoadLibrary_Failed:
jmp 0x40f464
mov edi, dword [ebx]
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2cc], eax
test edi, edi
jne 0x40f58b
xor eax, eax
mov dword [ebp - 0x2cc], eax
jmp 0x40f656
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f590
sub ecx, edx
lea eax, [ebp - 0x2c8]
sar ecx, 1
push 0x80
push eax
lea eax, [ebp - 0x2cc]
lea ebx, [ecx + 1]
lea esi, [ebx*4]
mov dword [ebp - 0x2d0], ebx
push esi
push eax
call fcn.00408f60
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0x2cc]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push edi
push 0
push 3
call esi
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x40f64c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f64c
mov ebx, dword [ebp - 0x2d0]
push 0
push 0
push 0
push 0
push ebx
push edi
push 0
push 3
call esi
mov esi, eax
lea eax, [ebp - 0x2c8]
push 0x80
push eax
lea eax, [ebp - 0x2cc]
push esi
push eax
call fcn.00408f60
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0x2cc]
push ebx
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x40f699
mov eax, dword [ebp - 0x2cc]
push eax
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea ecx, [ebp - 0x2c8]
mov eax, dword [ebp - 0x2cc]
cmp eax, ecx
je 0x40f67e
push eax
call fcn.0045c7d1
add esp, 4
test esi, esi
je 0x40f388
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov eax, 1
jmp 0x40f38a
push 0x80
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x2cc]
call fcn.00408fe0
add esp, 0xc
call fcn.00409d90
int3