Function at 0x405a50
Capabilities:
Accept command line arguments
Contain obfuscated stackstrings
Get common file path
Get file size
Query environment variable
Read file on windows
Set environment variable

Disassembly:
push 0xc44
mov eax, 0x44706d
call fcn.0040f76c
mov edi, ecx
mov dword [ebp - 0xc4c], edi
xor ebx, ebx
mov dword [ebp - 0xc34], ebx
mov dword [ebp - 4], 1
push 0x208
push ebx
lea eax, [ebp - 0x31c]
push eax
call fcn.0042a960
add esp, 0xc
push 0x104
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x31c]
push eax
call fcn.004316a4
pop ecx
mov dword [ebp - 0xc3c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea esi, [eax + 2]
mov dword [ebp - 0xc30], esi
push 0x22
pop ecx
cmp word [eax], cx
jne 0x405b02
push ecx
push esi
call fcn.0042936e
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x405b25
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405adb
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x405af4
add esi, 4
jmp 0x405afa
lea esi, [ebp - 0xc3c]
mov dword [ebp - 0xc30], esi
jmp 0x405b25
push 0x20
push esi
call fcn.0042936e
pop ecx
pop ecx
lea esi, [ebp - 0xc3c]
mov dword [ebp - 0xc30], esi
test eax, eax
je 0x405b25
add eax, 2
mov dword [ebp - 0xc30], eax
push 0x208
push ebx
lea eax, [ebp - 0x524]
push eax
call fcn.0042a960
add esp, 0xc
push 0x104
lea eax, [ebp - 0x524]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405b99
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x405b90
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x34], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x4064a3
mov edi, ebx
mov eax, 0x200
mov dword [ebp - 0xc40], eax
push eax
push ebx
lea eax, [ebp - 0xc24]
push eax
call fcn.0042a960
add esp, 0xc
push 2
push ebx
push 0xfffffe00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0xc40]
push eax
push 0x200
lea eax, [ebp - 0xc24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc40], 0x200
jne 0x406949
lea eax, [ebp - 0xc24]
cmp dword [eax], 0x2a4c5254
jne 0x406949
cmp dword [ebp - 0xc18], 0xbe
jae 0x405c1b
cmp dword [ebp - 0xc18], edi
jne 0x40634b
push 0xa000
mov edi, 0x4649f0
push edi
push 0x457ce8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x93c], ebx
mov dword [ebp - 0x938], ebx
mov dword [ebp - 0x93c], ebx
mov dword [ebp - 0x938], 7
xor eax, eax
mov word [ebp - 0x94c], ax
push 0x457d50
lea ecx, [ebp - 0x94c]
call fcn.0040269f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9f4]
call fcn.004051b3
mov byte [ebp - 4], 5
mov dword [ebp - 0x9ec], 0x80000002
push ebx
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push eax
call fcn.00402526
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9f4]
call fcn.00405337
test eax, eax
je 0x405de4
push ebx
push ebx
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push eax
call fcn.00402526
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9f4]
call fcn.00405397
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
mov esi, 0x457b00
push esi
call fcn.00402526
mov byte [ebp - 4], 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc2c], esp
push str.MSRedist
call fcn.00402526
mov byte [ebp - 4], 9
lea eax, [ebp - 0x97c]
push eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9f4]
call fcn.00405498
mov byte [ebp - 4], 0xa
push str.x86
lea edx, [ebp - 0x97c]
lea ecx, [ebp - 0x964]
call fcn.00406abd
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x964]
cmp dword [ebp - 0x950], 8
cmovae eax, dword [ebp - 0x964]
push eax
push 1
push 0x1b8
push str.CRunExecutable::Run
push str.d:ispbhelpercommon_runexecutable.cpp
call fcn.00403438
add esp, 0x18
mov dword [0x4649f0], 0x3b
lea ecx, [ebp - 0x964]
cmp dword [ebp - 0x950], 8
cmovae ecx, dword [ebp - 0x964]
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x405db5
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x964]
call fcn.00402671
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x97c]
call fcn.00402671
jmp 0x405de9
mov esi, 0x457b00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9f4]
call fcn.00405227
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94c]
call fcn.00402671
mov dword [ebp - 0x954], ebx
mov dword [ebp - 0x950], ebx
mov dword [ebp - 0x954], ebx
mov dword [ebp - 0x950], 7
xor eax, eax
mov word [ebp - 0x964], ax
push str.SoftwareSybasePowerBuilder_
lea ecx, [ebp - 0x964]
call fcn.0040269f
mov byte [ebp - 4], 0xc
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x9e4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc18]
xor edx, edx
push 0xa
pop ecx
div ecx
push eax
push str._d.0
lea eax, [ebp - 0x9e4]
push eax
call fcn.00403244
add esp, 0xc
lea eax, [ebp - 0x9e4]
push eax
lea ecx, [ebp - 0x964]
call fcn.00402e54
lea ecx, [ebp - 0xa24]
call fcn.004051b3
mov byte [ebp - 4], 0xd
mov dword [ebp - 0xa1c], 0x80000002
push ebx
lea eax, [ebp - 0x964]
cmp dword [ebp - 0x950], 8
cmovae eax, dword [ebp - 0x964]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push eax
call fcn.00402526
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa24]
call fcn.00405337
test eax, eax
je 0x4060be
push ebx
push ebx
lea eax, [ebp - 0x964]
cmp dword [ebp - 0x950], 8
cmovae eax, dword [ebp - 0x964]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push eax
call fcn.00402526
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa24]
call fcn.00405397
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push esi
call fcn.00402526
mov byte [ebp - 4], 0x10
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc2c], esp
push str.Location
call fcn.00402526
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x994]
push eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa24]
call fcn.00405498
mov byte [ebp - 4], 0x12
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push esi
call fcn.00402526
mov byte [ebp - 4], 0x13
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc2c], esp
push str.IPS_Name
call fcn.00402526
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x97c]
push eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xa24]
call fcn.00405498
mov byte [ebp - 4], 0x15
push 0x457bac
lea edx, [ebp - 0x994]
lea ecx, [ebp - 0x9c4]
call fcn.00406abd
pop ecx
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x97c]
push ecx
mov ecx, eax
call fcn.00402e7b
push eax
lea ecx, [ebp - 0x9ac]
call fcn.004024f3
mov dword [ebp - 0xc34], 1
push str.x86
mov edx, eax
lea ecx, [ebp - 0x94c]
call fcn.00406b2d
pop ecx
mov byte [ebp - 4], 0x18
xor eax, eax
inc eax
mov dword [ebp - 0xc34], eax
and eax, 0xfffffffe
mov dword [ebp - 0xc34], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x9ac]
call fcn.00402671
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x9c4]
call fcn.00402671
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
push eax
push 1
push 0x1ca
push str.CRunExecutable::Run
push str.d:ispbhelpercommon_runexecutable.cpp
call fcn.00403438
add esp, 0x14
mov dword [0x4649f0], 0x3b
lea ecx, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae ecx, dword [ebp - 0x94c]
mov edi, 0x4649f0
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x406080
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x94c]
call fcn.00402671
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x97c]
call fcn.00402671
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x994]
call fcn.00402671
jmp 0x4060c3
mov edi, 0x4649f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa24]
call fcn.00405227
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x964]
call fcn.00402671
mov dword [ebp - 0x93c], ebx
mov dword [ebp - 0x938], ebx
mov dword [ebp - 0x93c], ebx
mov dword [ebp - 0x938], 7
xor eax, eax
mov word [ebp - 0x94c], ax
push str.SOFTWARESybasePowerBuilder_Runtime
lea ecx, [ebp - 0x94c]
call fcn.0040269f
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x9f4]
call fcn.004051b3
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x9ec], 0x80000002
push ebx
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push eax
call fcn.00402526
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x9f4]
call fcn.00405337
test eax, eax
je 0x406321
push ebx
push ebx
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push eax
call fcn.00402526
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x9f4]
call fcn.00405397
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push esi
call fcn.00402526
mov byte [ebp - 4], 0x1f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc2c], esp
push str.RuntimeVersion
call fcn.00402526
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x97c]
push eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x9f4]
call fcn.00405498
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x97c]
cmp dword [ebp - 0x968], 8
cmovae eax, dword [ebp - 0x97c]
push eax
push 0x457bac
lea ecx, [ebp - 0x94c]
call fcn.00402e54
mov ecx, eax
call fcn.00402e54
push ebx
push ebx
lea eax, [ebp - 0x94c]
cmp dword [ebp - 0x938], 8
cmovae eax, dword [ebp - 0x94c]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push eax
call fcn.00402526
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x9f4]
call fcn.00405397
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc28], esp
push esi
call fcn.00402526
mov byte [ebp - 4], 0x23
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc2c], esp
push str.Location
call fcn.00402526
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0x964]
push eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x9f4]
call fcn.00405498
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x964]
cmp dword [ebp - 0x950], 8
cmovae eax, dword [ebp - 0x964]
push eax
push 1
push 0x1da
push str.CRunExecutable::Run
push str.d:ispbhelpercommon_runexecutable.cpp
call fcn.00403438
add esp, 0x14
mov dword [0x4649f0], 0x3b
lea ecx, [ebp - 0x964]
cmp dword [ebp - 0x950], 8
cmovae ecx, dword [ebp - 0x964]
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4062f4
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x964]
call fcn.00402671
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x97c]
call fcn.00402671
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x9f4]
call fcn.00405227
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94c]
call fcn.00402671
push edi
push 0x457ce8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x100
push ebx
lea eax, [ebp - 0x114]
push eax
call fcn.0042a960
add esp, 0xc
push 0x80
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc04]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x114]
push eax
mov edi, 0x461ce0
mov ecx, edi
call fcn.0040269f
push str.PBSHR
mov esi, 0x461cf8
mov ecx, esi
call fcn.00402e54
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x9c4]
push eax
mov ecx, edi
call fcn.004023f8
mov byte [ebp - 4], 0x26
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4063c1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00402e98
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c4]
call fcn.00402671
push 0x208
push ebx
lea eax, [ebp - 0x72c]
push eax
call fcn.0042a960
add esp, 0xc
mov eax, edi
cmp dword [0x461cf4], 8
cmovae eax, dword [0x461ce0]
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0xc2c], eax
test eax, eax
jne 0x4064b2
push ecx
lea ecx, [ebp - 0x9c4]
call fcn.004029d0
mov byte [ebp - 4], 0x27
mov dword [esp], str._fail_
mov edx, eax
lea ecx, [ebp - 0x97c]
call fcn.00406b2d
pop ecx
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x9c4]
call fcn.00402671
lea eax, [ebp - 0x97c]
cmp dword [ebp - 0x968], 8
cmovae eax, dword [ebp - 0x97c]
push 0x10
push str.fail
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x97c]
call fcn.00402671
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40649c
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x34], ebx
or dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
lea ecx, [ebp + 0x38]
call fcn.00406a36
mov eax, ebx
jmp 0x406993
push 0x104
lea ecx, [ebp - 0x72c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x20
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x72c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc2c], eax
cmp eax, 0xffffffff
je 0x40657d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc44], eax
push eax
call fcn.0040f43f
pop ecx
mov dword [ebp - 0xc38], eax
test eax, eax
je 0x406571
push dword [ebp - 0xc44]
push ebx
push eax
call fcn.0042a960
add esp, 0xc
mov dword [ebp - 0xc28], ebx
push ebx
lea eax, [ebp - 0xc28]
push eax
push dword [ebp - 0xc44]
push dword [ebp - 0xc38]
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc38]
call fcn.00403f89
test eax, eax
je 0x406565
mov ecx, eax
call fcn.004045bd
push dword [ebp - 0xc38]
call fcn.0040f1a0
pop ecx
push dword [ebp - 0xc2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
cmp dword [0x461d0c], 8
cmovae eax, dword [0x461cf8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x46493c], eax
test eax, eax
jne 0x4065bf
push edi
mov ecx, esi
call fcn.00403265
cmp dword [0x461d0c], 8
cmovae esi, dword [0x461cf8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x46493c], eax
cmp dword [0x461cf4], 8
cmovae edi, dword [0x461ce0]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x464940], eax
test eax, eax
je 0x4066f1
push str.ob_get_mode
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push str.ob_get_process_mgr
push dword [0x464940]
call esi
push str.pbstg_sz
push dword [0x464940]
call esi
push str.FN_RunExecutable
push dword [0x464940]
call esi
mov esi, eax
test esi, esi
je 0x406947
mov dword [ebp - 0xc48], ebx
mov ecx, dword [ebp - 0xc08]
mov dword [ebp - 0xc28], ecx
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x40699b
mov eax, dword [ecx]
lea edx, [ebp - 0xc28]
push edx
call dword [eax + 8]
push str.run_app_...
push 1
push 0x247
push str.CRunExecutable::Run
push str.d:ispbhelpercommon_runexecutable.cpp
call fcn.00403426
add esp, 0x14
mov byte [ebp - 4], 0x2c
push ebx
push 0x3e8
push dword [ebp + 0xc]
push dword [ebp - 0xc30]
mov eax, dword [ebp - 0xc4c]
push dword [eax + 4]
push dword [eax]
call esi
mov ecx, eax
mov dword [ebp - 0xc48], ecx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
jmp 0x4066bc
mov edi, ebx
push ecx
push str.run_app_end__d
push eax
push 0x250
push str.CRunExecutable::Run
push str.d:ispbhelpercommon_runexecutable.cpp
call fcn.00403426
add esp, 0x18
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
je 0x40699b
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x406949
push ecx
lea ecx, [ebp - 0x9c4]
call fcn.004029d0
mov byte [ebp - 4], 0x2e
mov dword [esp], str._fail_
mov edx, eax
lea ecx, [ebp - 0x97c]
call fcn.00406b2d
pop ecx
mov byte [ebp - 4], 0x30
lea ecx, [ebp - 0x9c4]
call fcn.00402671
mov esi, dword [0x464958]
mov edi, dword [0x46495c]
jmp 0x406908
mov dword [ebp - 0x984], ebx
mov dword [ebp - 0x980], ebx
push esi
lea ecx, [ebp - 0x994]
call fcn.00402877
mov byte [ebp - 4], 0x31
push 0x208
push ebx
lea eax, [ebp - 0x934]
push eax
call fcn.0042a960
add esp, 0xc
lea eax, [ebp - 0x994]
cmp dword [ebp - 0x980], 0x10
cmovae eax, dword [ebp - 0x994]
push 0x104
lea ecx, [ebp - 0x934]
push ecx
push dword [ebp - 0x984]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x99c], ebx
mov dword [ebp - 0x998], ebx
mov dword [ebp - 0x99c], ebx
mov dword [ebp - 0x998], 7
xor eax, eax
mov word [ebp - 0x9ac], ax
lea eax, [ebp - 0x934]
push eax
lea ecx, [ebp - 0x9ac]
call fcn.0040269f
mov byte [ebp - 4], 0x32
mov dword [ebp - 0x93c], ebx
mov dword [ebp - 0x938], ebx
mov dword [ebp - 0x93c], ebx
mov dword [ebp - 0x938], 7
xor eax, eax
mov word [ebp - 0x94c], ax
push 0x457b04
lea ecx, [ebp - 0x94c]
call fcn.0040269f
mov byte [ebp - 4], 0x33
mov dword [ebp - 0x954], ebx
mov dword [ebp - 0x950], ebx
mov dword [ebp - 0x954], ebx
mov dword [ebp - 0x950], 7
xor eax, eax
mov word [ebp - 0x964], ax
push 0x457f68
lea ecx, [ebp - 0x964]
call fcn.0040269f
mov byte [ebp - 4], 0x34
lea eax, [ebp - 0x94c]
push eax
lea edx, [ebp - 0x964]
lea ecx, [ebp - 0x9dc]
call fcn.00406b67
mov byte [ebp - 4], 0x35
lea ecx, [ebp - 0x9ac]
push ecx
mov edx, eax
lea ecx, [ebp - 0xa0c]
call fcn.00406b67
mov byte [ebp - 4], 0x36
push str._not_exist
mov edx, eax
lea ecx, [ebp - 0x9c4]
call fcn.00406b2d
add esp, 0xc
mov byte [ebp - 4], 0x37
push eax
lea ecx, [ebp - 0x97c]
call fcn.00402e7b
mov byte [ebp - 4], 0x36
lea ecx, [ebp - 0x9c4]
call fcn.00402671
mov byte [ebp - 4], 0x35
lea ecx, [ebp - 0xa0c]
call fcn.00402671
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x9dc]
call fcn.00402671
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x964]
call fcn.00402671
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0x94c]
call fcn.00402671
mov byte [ebp - 4], 0x31
lea ecx, [ebp - 0x9ac]
call fcn.00402671
mov byte [ebp - 4], 0x30
lea ecx, [ebp - 0x994]
call fcn.0040277c
add esi, 0x18
cmp esi, edi
jne 0x406736
lea eax, [ebp - 0x97c]
cmp dword [ebp - 0x968], 8
cmovae eax, dword [ebp - 0x97c]
push 0x10
push str.fail
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x97c]
call fcn.00402671
jmp 0x406949
mov edi, ebx
mov eax, dword [0x46493c]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40695b
push eax
call esi
mov eax, dword [0x464940]
test eax, eax
je 0x406967
push eax
call esi
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x406985
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x34], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x38]
call fcn.00406a36
mov eax, edi
call fcn.0040f6b9
ret 0x58
call fcn.0040c5b9
int3