Function at 0x403650
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path
Get file attributes

Disassembly:
mov eax, 0x5890
call fcn.00409510
push ebx
xor ebx, ebx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 8], ebx
call fcn.004025b0
lea ecx, [esp + 0x20]
call fcn.004025b0
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x1c
call fcn.004083ed
add esp, 4
cmp eax, ebx
je 0x4036ae
mov ecx, eax
call fcn.004014b0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
jne 0x4036ce
lea ecx, [esp + 0x20]
call fcn.004032e0
lea ecx, [esp + 0x34]
call fcn.004032e0
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x5890
ret 0x10
push ebp
push edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [esp + 0x58a4]
push eax
lea eax, [esp + 0x14]
push ebx
push eax
push ecx
call dword [sym.imp.SQLRESLD.dll_SQLUILoadResourceDLL]
add esp, 0x10
test eax, eax
jne 0x4036fe
or esi, 0xffffffff
jmp 0x4044b6
push ebx
mov ecx, esi
call fcn.00401520
cmp eax, 0xffffffff
jne 0x403722
mov edx, dword [esp + 0x10]
mov esi, 0x57
push edx
call fcn.00404530
add esp, 4
jmp 0x4044b6
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x1b54]
mov ebp, dword [esp + 0x58ac]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x734]
push 0x4134b4
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x2568]
push ebp
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x1654]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x114c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x2a74]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x2064]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0xc44]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call fcn.00408570
add esp, 8
test eax, eax
jne 0x4044a7
push 0x4134b0
push ebp
call fcn.00408570
add esp, 8
test eax, eax
jne 0x4044a7
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4038ae
push 0x14
call fcn.004083ed
add esp, 4
cmp eax, ebx
je 0x40381a
mov ecx, eax
call fcn.00402390
mov esi, eax
cmp esi, ebx
jne 0x403824
mov esi, 0xe
jmp 0x4044b6
mov ecx, esi
call fcn.00402400
mov ecx, esi
mov edi, eax
call fcn.004023f0
push esi
call fcn.00408360
add esp, 4
cmp edi, ebx
jne 0x4038ae
push str.kRm
push ebp
call fcn.00408570
add esp, 8
test eax, eax
je 0x40385d
mov esi, 0x522
jmp 0x4044b6
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x347c]
push 0x800
push eax
push 0xd
push ecx
call esi
lea edx, [esp + 0xc4]
push 0x60
mov eax, dword [esp + 0x14]
push edx
push 9
push eax
call esi
lea ecx, [esp + 0xc4]
push ebx
lea edx, [esp + 0x3480]
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, 0x522
jmp 0x4044b6
lea eax, [esp + 0x205c]
push eax
push 0x505
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc3c]
push 0x505
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
lea edi, [esp + 0x205c]
je 0x4038e6
lea edi, [esp + 0xc3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1144]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2a6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x4131e0
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1148]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1148]
push ecx
call fcn.00408570
mov edx, eax
add esp, 8
cmp edx, ebx
je 0x4039fa
lea edi, [esp + 0x1144]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1144]
mov ebx, ecx
sub eax, edx
add ebx, eax
lea ecx, [edx + 2]
inc edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x30]
mov ecx, ebx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, ebp
inc ebp
push eax
lea eax, [esp + 0x64]
push str.setup_d.iss
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1144]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403980
jmp 0x403a23
mov edi, str.setupiss.iss
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x58ac]
push 0x413484
push esi
call fcn.00408570
add esp, 8
test eax, eax
je 0x403ac4
push 0x413480
push esi
call fcn.00408570
add esp, 8
test eax, eax
je 0x403ac4
mov edi, str.stpsilnt._ex
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x41346c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x20], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.004017c0
test eax, eax
je 0x403b88
push 0
mov ecx, eax
call fcn.00403360
mov edx, eax
test edx, edx
je 0x403b88
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403b88
jmp 0x403b62
push 0x413468
push esi
call fcn.00408570
add esp, 8
test eax, eax
je 0x403b05
mov edi, str.isuninst.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 2
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1c], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x403b83
mov edi, 0x41344c
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x124]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x413448
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x20], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.004017c0
test eax, eax
je 0x403b88
push ebx
mov ecx, eax
call fcn.00403360
mov edx, eax
test edx, edx
je 0x403b88
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403b88
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [esp + 0x58a4]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x738]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x12c]
push edx
push eax
push str.SetupSourcePath
push 1
push ecx
push ebp
mov dword [esp + 0x54], 0x505
call fcn.00405c70
mov esi, eax
add esp, 0x20
test esi, esi
je 0x403be7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x734]
push edx
push esi
push eax
call fcn.004061b0
add esp, 0xc
jmp 0x4044b6
cmp ebx, 2
jne 0x403ce7
lea ecx, [esp + 0xc3c]
push ecx
call fcn.00409463
add esp, 4
lea edx, [esp + 0x734]
push eax
push edx
call fcn.00409463
add esp, 4
push eax
call fcn.00408570
add esp, 8
test eax, eax
jne 0x403c8f
lea edi, [esp + 0xc3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0xc3b]
lea ecx, [esp + 0xc3c]
cmp al, 0x5c
lea eax, [esp + 0x734]
push eax
push ecx
jne 0x403c4f
push str._s_s
jmp 0x403c54
push 0x4131d0
lea edx, [esp + 0x2068]
push edx
call fcn.00409411
lea edi, [esp + 0x206c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x734]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1b54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x164c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x734]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403d42
lea edi, [esp + 0x734]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1b54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x164c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1b54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 1
rep movsb byte es:[edi], byte [esi]
jne 0x403d70
lea eax, [esp + 0x124]
push eax
call fcn.00409463
add esp, 4
lea ecx, [esp + 0x164c]
push eax
push ecx
call fcn.00409463
add esp, 4
push eax
call fcn.00408570
add esp, 8
test eax, eax
jne 0x403da3
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x164c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x164c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x34], 0x505
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x141
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x230]
push edx
push eax
push str.setup.ins
push str.SetupPath
push 0
push ecx
push ebp
call fcn.00405c70
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x40448f
lea edx, [esp + 0x22c]
push 0x505
push edx
call fcn.00407ae0
add esp, 8
test eax, eax
je 0x403e67
mov edi, 0x413040
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x22c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x734]
lea ecx, [esp + 0x22c]
push eax
push ecx
call fcn.004084e0
add esp, 8
test eax, eax
je 0x403ee2
lea edx, [esp + 0x734]
push edx
call fcn.00409463
add esp, 4
push eax
lea eax, [esp + 0x230]
push eax
call fcn.00409463
add esp, 4
push eax
call fcn.00408570
add esp, 8
test eax, eax
jne 0x403ef3
mov edi, str.setup.ins
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x22c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403ef3
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esp + 0x22c]
test al, al
je 0x403f46
mov bl, 0x22
cmp al, bl
je 0x403f46
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x22c]
mov esi, ecx
lea ecx, [esp + 0x22d]
push esi
push eax
push ecx
call fcn.00408de0
mov byte [esp + 0x238], bl
mov byte [esp + esi + 0x239], bl
add esp, 0xc
mov byte [esp + esi + 0x22e], 0
mov esi, dword [esp + 0x58ac]
lea edx, [esp + 0x4b94]
lea eax, [esp + 0x22c]
push edx
lea ecx, [esp + 0x2568]
push eax
lea edx, [esp + 0x4694]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x70]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x2a80]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push esi
push eax
push ecx
call fcn.00404590
add esp, 0x28
test eax, eax
jne 0x403f9e
or esi, 0xffffffff
jmp 0x4044b6
push str.2077F928_499C_11d2_9D9C_00C04F79D434
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x40404c
push str.2077F928_499C_11d2_9D9C_00C04F79D434
push 1
push 0
push 0
call ebx
mov dword [esp + 0x30], eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x80]
lea edx, [esp + 0x80]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x84], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edi, [esp + 0x1b54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1b53], 0x5c
jne 0x40402f
lea edi, [esp + 0x1b54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x1b53], al
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4040d8
lea ebp, [esp + 0x164c]
jmp 0x404147
push str.kCl
push esi
call fcn.00408570
add esp, 8
test eax, eax
jne 0x403fd3
cmp dword [esp + 0x1c], 2
je 0x403fd3
push str.kRm
push esi
call fcn.00408570
add esp, 8
test eax, eax
je 0x404087
or esi, 0xffffffff
jmp 0x4044b6
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x347c]
push 0x800
push edx
push 0xc
push eax
call esi
lea ecx, [esp + 0xc4]
push 0x60
mov edx, dword [esp + 0x14]
push ecx
push 9
push edx
call esi
lea eax, [esp + 0xc4]
push 0
lea ecx, [esp + 0x3480]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or esi, 0xffffffff
jmp 0x4044b6
lea edi, [esp + 0x2564]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x164c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x2564]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x141
lea edi, [esp + 0x2564]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x164c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x1c], 2
je 0x404251
push 0
lea ecx, [esp + 0x2c]
call fcn.004025c0
test eax, eax
je 0x404251
mov eax, 0x505
mov ecx, 0x141
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x2f74]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x4184]
push 0
rep stosd dword es:[edi], eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
stosb byte es:[edi], al
push 0
lea edx, [esp + 0x4198]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x2f90]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.004026b0
test eax, eax
je 0x404251
mov ecx, 0x141
xor eax, eax
lea edi, [esp + 0x734]
lea edx, [esp + 0x734]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x2f74]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x734]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._binn_sqlservr.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x734]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404251
mov dword [esp + 0x38], 1
mov ecx, dword [esp + 0x18]
push 0x4133e4
call fcn.004017c0
test eax, eax
je 0x404267
xor ebx, ebx
jmp 0x4042d2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004069c0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x40428a
call fcn.00406bb0
mov esi, dword [esp + 0x24]
jmp 0x4044b6
mov edx, dword [esp + 0x10]
push 0x410
push edx
call fcn.00407190
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x4042bd
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x1200
push eax
call fcn.00407190
add esp, 8
jmp 0x4044b6
push str.DDB6578C_4C90_4f49_A5ED_80DFB1A5BDB3
push 0
push 1
push 0
call ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x80]
push ecx
lea eax, [esp + 0x1b58]
push edx
push eax
push 0
push 8
push 0
push 0
lea ecx, [esp + 0x2580]
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40432f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
lea edx, [esp + 0x3c7c]
mov esi, eax
push edx
call edi
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004061b0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x40447e
mov ecx, dword [esp + 0x48]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ecx
call ebp
cmp eax, 0xffffffff
je 0x404359
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 0x24]
jmp 0x40435c
or esi, 0xffffffff
mov ecx, dword [esp + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x48]
push edx
call edi
test ebx, ebx
je 0x4043bc
mov ebx, dword [esp + 0x20]
or edi, 0xffffffff
test ebx, ebx
je 0x404389
push 0x493e0
push ebx
call ebp
mov edi, eax
cmp edi, 0x102
jne 0x4043a4
mov eax, dword [esp + 0x10]
push eax
call fcn.00406e60
add esp, 4
test eax, eax
jne 0x4043a8
jmp 0x40437b
test edi, edi
jne 0x40437b
mov ecx, dword [esp + 0x10]
push 0x1200
push ecx
call fcn.00407190
add esp, 8
jmp 0x4043c0
mov ebx, dword [esp + 0x20]
push esi
lea edx, [esp + 0x3480]
push str.nReturn___d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x50a8]
mov ebp, dword [esp + 0x28]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x50a8]
push 0x801
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x58c0]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xc54]
push ebp
push edx
push eax
push ecx
mov dword [esp + 0x3c], 0xffffffff
call fcn.004062e0
add esp, 0x28
cmp ebp, 2
mov edi, eax
je 0x404474
test esi, esi
jne 0x404462
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x404462
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x404462
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x468c]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.004057f0
add esp, 0x10
mov esi, eax
test edi, edi
jne 0x40447e
test esi, esi
je 0x40447e
cmp esi, 0xbc2
je 0x40447e
jmp 0x40447a
test edi, edi
mov esi, edi
jne 0x40447e
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x4044b6
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4044b6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x22c]
push ecx
push esi
push edx
call fcn.004061b0
add esp, 0xc
jmp 0x4044b6
mov eax, dword [esp + 0x10]
push eax
call fcn.00404530
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebp
je 0x4044d6
mov edx, dword [esp + 0x589c]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SQLRESLD.dll_SQLUIUnloadResourceDLL]
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4044ec
lea eax, [esp + 0x113c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
push 1
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40450d
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x40450d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
call fcn.004032e0
lea ecx, [esp + 0x34]
call fcn.004032e0
mov eax, esi
pop esi
pop ebx
add esp, 0x5890
ret 0x10