Function at 0x402070
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49b74a
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4be0a0]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [ebx + 0x14], 1
jne 0x402273
mov eax, dword [ebx + 0x4a4]
add eax, 0x40
push eax
push ebx
mov ecx, str.edtWebToolUrl
call fcn.00401f40
push 1
push str.edtToolName
lea edi, [ebx + 0x35c]
push edi
call fcn.004235d1
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [esp + 0x58]
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x108], esi
mov ecx, dword [eax]
mov esi, dword [ebx + 0x4a4]
mov eax, ecx
lea edx, [eax + 2]
add esi, 0x24
mov dword [esp + 0x1c], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x402114
sub eax, dword [esp + 0x1c]
sar eax, 1
push eax
push ecx
call fcn.004028e0
mov dword [esp + 0x108], 0xffffffff
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x40214c
push eax
call fcn.0047db14
add esp, 4
push 1
push str.btnToolImage
push edi
call fcn.004235d1
mov ecx, dword [eax + 0x384]
xor edx, edx
mov eax, ecx
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf0], 0
mov word [esp + 0xe0], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x402184
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0xe4]
call fcn.004028e0
mov esi, 1
mov dword [esp + 0x108], esi
mov eax, dword [ebx + 0x4a4]
cmp dword [eax + 0x70], 0
jne 0x402241
cmp dword [esp + 0xf0], 0
je 0x402241
mov edi, 8
cmp dword [esp + 0xf4], edi
jb 0x40220e
mov eax, dword [esp + 0xe0]
test eax, eax
jne 0x402215
lea eax, [esp + 0xdc]
mov ecx, dword [ebx + 0x4a4]
push 0xffffffffffffffff
push 0
add ecx, 0x5c
push eax
mov eax, ecx
call fcn.00402830
test byte [esp + 0x18], 1
je 0x402246
lea esi, [esp + 0x3c]
call fcn.00405980
jmp 0x402246
lea eax, [esp + 0xe0]
push str.addimage.png
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4021e0
mov edx, 0x4a11bc
lea eax, [esp + 0x3c]
call fcn.00402730
mov byte [esp + 0x108], 2
mov dword [esp + 0x18], esi
jmp 0x4021e7
mov edi, 8
mov dword [esp + 0x108], 0xffffffff
cmp dword [esp + 0xf4], edi
jb 0x402478
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0047d710
add esp, 4
jmp 0x402478
mov edx, dword [ebx + 0x4a4]
add edx, 0x40
push edx
push ebx
mov ecx, str.btnToolPath
call fcn.00401f40
mov eax, dword [ebx + 0x4a4]
add eax, 0x94
push eax
push ebx
mov ecx, str.edtStartParam
call fcn.00401f40
mov eax, dword [ebx + 0x4a4]
add eax, 0x40
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x4022b7
mov eax, dword [eax + 4]
jmp 0x4022ba
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4022d0
mov ecx, dword [ebx + 0x4a4]
add ecx, 0x40
jmp 0x402313
push esi
mov dword [esp + 0xf4], esi
xor ecx, ecx
push 0x4a11bc
lea esi, [esp + 0xe4]
mov dword [esp + 0xfc], 7
mov word [esp + 0xe8], cx
call fcn.004028e0
mov dword [esp + 0x108], 3
mov ecx, esi
mov dword [esp + 0x18], 2
mov eax, dword [ebx + 0x4a4]
push 0xffffffffffffffff
push 0
add eax, 0x40
push ecx
call fcn.00402830
mov dword [esp + 0x108], 0xffffffff
test byte [esp + 0x18], 2
je 0x402351
cmp dword [esp + 0xf4], edi
jb 0x402351
mov edx, dword [esp + 0xe0]
push edx
call fcn.0047d710
add esp, 4
mov eax, dword [ebx + 0x4a4]
cmp dword [eax + 0x54], 0
je 0x402473
cmp dword [eax + 0x38], 0
je 0x402371
cmp dword [eax + 0x70], 0
jne 0x402473
mov edi, 8
cmp dword [eax + 0x58], edi
jb 0x402380
mov esi, dword [eax + 0x44]
jmp 0x402383
lea esi, [eax + 0x44]
call fcn.0045d2b9
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str.btn__s__d
lea esi, [esp + 0xe8]
call fcn.0045e820
add esp, 0xc
or esi, 0xffffffff
push esi
mov dword [esp + 0x10c], 4
mov ecx, dword [ebx + 0x4a4]
push 0
add ecx, 0x24
push eax
mov eax, ecx
call fcn.00402830
mov dword [esp + 0x108], esi
cmp dword [esp + 0xf4], edi
jb 0x4023e7
mov eax, dword [esp + 0xe0]
push eax
call fcn.0047d710
add esp, 4
mov eax, dword [ebx + 0x4a4]
lea edx, [eax + 0x24]
add eax, 0x40
push eax
lea ecx, [esp + 0xe0]
call fcn.00407360
add esp, 4
push esi
mov dword [esp + 0x10c], 5
mov ecx, dword [ebx + 0x4a4]
push 0
add ecx, 0x5c
push eax
mov eax, ecx
call fcn.00402830
mov dword [esp + 0x108], esi
cmp dword [esp + 0xf4], edi
jb 0x402442
mov ecx, dword [esp + 0xe0]
push ecx
call fcn.0047d710
add esp, 4
mov eax, dword [ebx + 0x4a4]
add eax, 0x5c
cmp dword [eax + 0x18], edi
jb 0x402455
mov eax, dword [eax + 4]
jmp 0x402458
add eax, 4
push eax
push 1
push str.btnToolImage
lea edx, [ebx + 0x35c]
push edx
call fcn.004235d1
mov edi, eax
call fcn.0042afd4
mov edi, 8
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x4a4]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0x4a4]
add edx, edi
push edx
push ebx
mov ecx, str.edtToolName
call fcn.00401f40
mov eax, dword [ebx + 0x4a4]
add eax, 0x78
push eax
push ebx
mov ecx, str.edtToolDesc
call fcn.00401f40
push 1
push str.chkAdmin
lea ecx, [ebx + 0x35c]
push ecx
call fcn.004235d1
movzx edx, byte [eax + 0xfd0]
mov eax, dword [ebx + 0x4a4]
lea ecx, [esp + 0xdc]
mov dword [eax], edx
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 0x4a4]
call fcn.00401e90
add esp, 4
cmp dword [eax + 0x14], 0
setne byte [esp + 0x17]
cmp dword [esp + 0xf4], edi
jb 0x40250a
mov edx, dword [esp + 0xe0]
push edx
call fcn.0047d710
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4025b3
mov ecx, dword [ebx + 0x4a4]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00401e90
add esp, 4
mov dword [esp + 0x108], 6
cmp dword [eax + 0x18], edi
jb 0x402540
mov eax, dword [eax + 4]
jmp 0x402543
add eax, 4
push eax
push 0x4a1480
lea esi, [esp + 0x28]
call fcn.0045e820
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x40255f
mov eax, dword [eax + 4]
jmp 0x402562
add eax, 4
mov ecx, dword [ebx + 4]
push 0x10
push 0x4a1488
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x38], edi
jb 0x402587
mov edx, dword [esp + 0x24]
push edx
call fcn.0047d710
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp dword [esp + 0x54], edi
jb 0x4025d1
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0047d710
add esp, 4
jmp 0x4025d1
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4025d1
mov eax, dword [ebx + 4]
push 0
push 1
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0047d444
mov esp, ebp
pop ebp
ret 4