Function at 0x404e10
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Get common file path
Load windows common language runtime
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x51c]
sub esp, 0x51c
push 0xffffffffffffffff
push 0x4493b3
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x4531f0]
xor eax, ebp
mov dword [ebp + 0x518], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], esi
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, esi
mov dword [ebp - 0x90], eax
je 0x404f04
push 0x206
lea ecx, [ebp + 0x106]
push esi
push ecx
mov word [ebp + 0x104], si
call fcn.00437d30
add esp, 0xc
lea edx, [ebp + 0x104]
push edx
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
call fcn.00402180
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x104]
call fcn.004045b0
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00406f60
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x404f12
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404f04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x405b06
mov dword [ebp - 0x80], ebx
push str.CorBindToRuntimeEx
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call esi
test eax, eax
mov dword [ebp - 0x50], eax
jne 0x404f4e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404ef8
push str.StrongNameSignatureVerificationEx
push ebx
call esi
lea esi, [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
call fcn.00401000
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x404f80
call eax
test eax, eax
setne al
test al, al
jne 0x405a86
lea esi, [ebp - 0xa8]
call fcn.00401040
test al, al
jne 0x405a86
push 0x208
lea ecx, [ebp + 0x30e]
push 0
push ecx
mov word [ebp + 0x30c], 0
call fcn.00437d30
add esp, 0xc
push 0x20a
lea edx, [ebp + 0x30c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x30c]
call fcn.004045b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
push eax
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp word [eax], 0
jne 0x404ff0
or esi, 0xffffffff
jmp 0x404ff6
sub eax, esi
sar eax, 1
mov esi, eax
lea edi, [ebp - 0x24]
call fcn.00406ef0
lea edx, [ebp - 0x28]
lea ecx, [ebp + esi*2 + 0x30c]
push edx
call fcn.004045b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.ENCRYPTOR.EXE
push eax
call esi
test eax, eax
je 0x405a59
mov ecx, dword [ebp - 0x28]
push str.LAUNCHER.EXE
push ecx
call esi
test eax, eax
je 0x405a59
push 0x44dee4
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x405a59
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test esi, esi
mov dword [ebp - 0x54], eax
je 0x405a59
test edi, edi
je 0x405a59
test eax, eax
je 0x405a59
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
push edx
mov ecx, edi
call fcn.00404200
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x38]
push edi
push eax
push edi
push ecx
call fcn.00434753
add esp, 0x10
mov dword [ebp - method.PPGPolicy::SuperPro.virtual_0], vtable.PPGPolicy::SuperPro.0
mov word [ebp - 0x104], 0xffff
mov byte [ebp - 0x102], 0
mov dword [ebp - 0x100], 0
push 0x56e0
lea edi, [ebp - 0x50c]
mov byte [ebp - 4], 7
call fcn.00407450
mov ebx, edi
call fcn.004074d0
test al, al
jne 0x4051ad
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push edx
call fcn.004045b0
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00405b40
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 0x11], 0
cmp byte [ebp - 0x11], 0
jne 0x4051a1
mov eax, dword [ebp - 0x20]
push 0x45
push eax
push str.Warning:_Unable_to_detect_security_dongle_or_Sonic_hardware._Check_that_required_hardware_dongle_devices_are_installed__and_the_drivers_have_been_installed_correctly.
push 0
call esi
cmp eax, 4
jne 0x40514e
lea ebx, [ebp - 0x50c]
call fcn.004074d0
test al, al
je 0x40511f
mov byte [ebp - 0x11], 1
jmp 0x40511f
lea eax, [ebp - 0x20]
call fcn.00406ff0
lea ecx, [ebp - 0x50c]
call fcn.004010e0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00434c6c
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00402260
lea eax, [ebp - 0x24]
call fcn.00406ff0
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40518b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
call fcn.00406ff0
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x405b06
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00406ff0
lea esi, [ebp - 0x48]
call fcn.00407990
push 0x64
mov byte [ebp - 4], 9
call fcn.00434d2f
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
je 0x4051dd
mov eax, esi
call fcn.00404860
mov dword [edi], vtable.AntiDongleEmulator.0
mov dword [ebp - 0x2c], edi
jmp 0x4051e0
mov dword [ebp - 0x2c], ebx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edx
push 0x50
mov byte [ebp - 4], 0xa
call fcn.00434d2f
add esp, 4
cmp eax, ebx
je 0x405206
mov edi, eax
call fcn.00404a80
mov esi, eax
mov dword [ebp - 0x34], esi
jmp 0x40520b
mov dword [ebp - 0x34], ebx
mov esi, ebx
mov dword [ebp - 0x84], esi
push 0x44e040
mov byte [ebp - 4], 0xb
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x44e044
call edi
push 0x44e19c
push str.COR_PROFILER
call edi
lea eax, [ebp - 0x40]
push eax
push 0x44ddb4
push 0x44dda4
push ebx
push 0x44e08c
push str.v2.0.50727
mov dword [ebp - 0x40], ebx
call dword [ebp - 0x50]
mov ebx, eax
call fcn.00402180
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
mov ebx, eax
call fcn.00402180
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
mov ebx, eax
call fcn.00402180
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push 0x44e17c
push eax
mov eax, dword [ecx]
call eax
mov ebx, eax
call fcn.00402180
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00404c00
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
test eax, eax
je 0x4052d1
mov eax, dword [eax]
jmp 0x4052d3
xor eax, eax
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x10]
push ebx
call eax
lea edi, [ebp - 0xb4]
mov ebx, eax
mov byte [ebp - 4], 0xd
call fcn.00404ca0
call fcn.00402180
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp + 0x30c]
call fcn.004045b0
push 7
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 0xf
call fcn.00406e60
mov edi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0xbc]
push eax
call fcn.00404c00
mov byte [ebp - 4], 0x10
mov eax, dword [eax]
test eax, eax
je 0x405330
mov eax, dword [eax]
jmp 0x405332
xor eax, eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x28]
push eax
push ebx
call edx
lea edi, [ebp - 0xbc]
mov ebx, eax
mov byte [ebp - 4], 0xf
call fcn.00404ca0
call fcn.00402180
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0xc4]
push eax
mov edi, str.Scenarist
call fcn.00404c00
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
test eax, eax
je 0x405373
mov eax, dword [eax]
jmp 0x405375
xor eax, eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x18]
push eax
push ebx
call edx
lea edi, [ebp - 0xc4]
mov ebx, eax
mov byte [ebp - 4], 0xf
call fcn.00404ca0
call fcn.00402180
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x58]
push edx
mov edx, dword [ebp - 0x30]
push 0
push edx
push str.Scenarist_Embeded_CLR
push eax
mov eax, dword [ecx + 0x44]
call eax
mov ebx, eax
call fcn.00402180
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push 0x44e18c
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0xa4]
cmp eax, ebx
je 0x4053f5
call eax
cmp eax, ebx
setne al
cmp al, bl
jne 0x405977
lea esi, [ebp - 0xa8]
call fcn.00401040
cmp al, bl
jne 0x405974
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x8c]
push edx
push eax
push ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], ebx
call fcn.004022e0
add esp, 0x10
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 0x14
mov esi, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x88]
push esi
push edi
lea eax, [ebp - 0x4c]
call fcn.00406260
mov ecx, edi
mov eax, esi
cmp ecx, ebx
je 0x405461
mov byte [eax], bl
add eax, 1
sub ecx, 1
jmp 0x405453
push esi
call fcn.00434c6c
add esp, 4
mov dword [ebp - 0x74], ebx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov edx, dword [edx + 0xb4]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x4c]
push ecx
push eax
call edx
mov ebx, eax
call fcn.00402180
xor ebx, ebx
cmp ebx, edi
lea esi, [ebp - 0x4c]
jae 0x4054a9
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x11], 0xcd
call fcn.004061d0
add ebx, 5
jmp 0x405490
call fcn.00406340
mov dword [ebp - 0x68], 0
mov bl, 0x16
mov byte [ebp - 4], bl
mov edi, dword [ebp - 0x3c]
mov eax, str.SonicOptionsDotNet__Cultureneutral__PublicKeyToken60c308bb332adb5a
lea esi, [ebp - 0xc0]
call fcn.00406dc0
mov byte [ebp - 4], 0x17
mov eax, dword [eax]
mov ecx, dword [edi]
lea edx, [ebp - 0x68]
push edx
push eax
mov eax, dword [ecx + 0xb0]
push edi
call eax
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xc0]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
mov esi, eax
call edi
test esi, esi
jl 0x405555
mov eax, 0x44db9b
lea esi, [ebp - 0x1c]
call fcn.00406dc0
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov edx, dword [edx + 0x70]
mov ecx, esi
push ecx
push eax
call edx
test eax, eax
jl 0x40554f
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp]
call fcn.00406370
mov eax, dword [ebp - 0xb8]
mov byte [ebp - 4], 0x19
mov edx, dword [ebp]
call fcn.00404dc0
mov eax, dword [ebp]
lea ecx, [ebp + 4]
cmp eax, ecx
je 0x40554f
push eax
call fcn.00434c6c
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call edi
mov dword [ebp - 0x5c], 0
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov ebx, eax
call fcn.00402180
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0xa0]
push ecx
call esi
lea edx, [ebp - 0xe8]
push edx
call esi
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x7c], 1
jg 0x40591b
mov eax, 0x44db9b
lea esi, [ebp - 0xac]
call fcn.00406dc0
mov byte [ebp - 4], 0x1e
mov eax, dword [eax]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], eax
push ecx
lea eax, [ebp - 0x2c]
call fcn.00405bb0
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0xac]
push edx
call edi
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x2c]
lea esi, [ebp - 0xfc]
call fcn.00406d30
mov dword [ebp - 0x34], 0
mov eax, esi
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x21
call fcn.00405cf0
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0x34]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x9c]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x98]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x94]
push ecx
mov ecx, dword [edx + 0x94]
mov dword [eax + 0xc], esi
call ecx
mov ebx, eax
test ebx, ebx
jge 0x405694
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
lea eax, [ebp - 0xe8]
push eax
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x9c]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x98]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x94]
push ecx
mov ecx, dword [edx + 0x94]
mov dword [eax + 0xc], esi
call ecx
mov ebx, eax
call fcn.00402180
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x2c]
call eax
lea esi, [ebp - 0xd4]
call fcn.00407010
mov eax, dword [ebp - 0xd4]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
mov dword [ebp - 0x6c], ecx
movzx ecx, word [eax + 4]
mov dword [ebp - 0x1c], edx
movzx edx, word [eax + 0x10]
push 0x56e0
lea edi, [ebp - 0x50c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x78], edx
call fcn.00407450
mov ebx, edi
call fcn.004074d0
test al, al
je 0x40578d
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
push ecx
mov dword [ebp - 0x50], 0
call fcn.00407180
lea esi, [ebp - 0x48]
call fcn.00407a00
test al, al
je 0x40578d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x78]
push 1
mov edx, esi
mov esi, dword [ebp - 0x50]
push esi
push eax
push ecx
push edi
lea eax, [ebp - 0x50c]
mov dword [ebp - 0x70], edx
call fcn.004077a0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 1
lea edx, [esi + 1]
push edx
push eax
push ecx
push edi
lea eax, [ebp - 0x50c]
call fcn.004077a0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 1
lea edx, [esi + 2]
push edx
push eax
push ecx
push edi
lea eax, [ebp - 0x50c]
call fcn.004077a0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 1
add esi, 3
push esi
push edx
push eax
push edi
lea eax, [ebp - 0x50c]
call fcn.004077a0
lea eax, [ebp - 0x70]
call fcn.00404840
mov esi, dword [ebp - 0x54]
call fcn.00404970
mov esi, dword [ebp - 0x84]
call fcn.00404b70
lea esi, [ebp - 0xd4]
call fcn.00407130
mov esi, dword [ebp - 0x34]
test esi, esi
mov ebx, dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
je 0x4057c6
push esi
call ebx
test eax, eax
jl 0x4057c6
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0xfc]
push ecx
call edi
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x4057ea
push esi
call ebx
test eax, eax
jl 0x4057ea
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea edx, [ebp - 0xe8]
push edx
call edi
lea eax, [ebp - 0xa0]
push eax
call edi
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40580f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x405822
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x405835
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x40584a
push esi
call ebx
test eax, eax
jl 0x40584a
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40585d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x405870
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x64]
call fcn.00402260
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40588b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x40589e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x4058b8
mov eax, esi
call fcn.00404af0
push esi
call fcn.0043436a
add esp, 4
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4058cc
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
cmp byte [ebp - 0x44], 0
je 0x4058e0
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x44], 0
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50c]
call fcn.004010e0
mov edx, dword [ebp - 0x38]
push edx
call fcn.00434c6c
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00402260
lea eax, [ebp - 0x24]
call fcn.00406ff0
mov eax, dword [ebp - 0x80]
test eax, eax
jmp 0x405a3b
mov ebx, 1
cmp ebx, dword [ebp - 0x7c]
jge 0x4055db
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + ebx*4]
test eax, eax
jne 0x40595a
xor esi, esi
mov dword [ebp - 0x78], esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x1f
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x6c], esi
call fcn.00405bb0
push esi
mov byte [ebp - 4], 0x1d
call edi
add ebx, 1
jmp 0x405920
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
mov dword [ebp - 0x78], esi
jne 0x40593b
push 0x8007000e
call fcn.00402150
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x40598a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x40599d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x64]
call fcn.00402260
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x4059b8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x4059cb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
je 0x4059df
mov eax, esi
call fcn.00404af0
push esi
call fcn.0043436a
add esp, 4
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x4059f3
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
cmp byte [ebp - 0x44], bl
je 0x405a05
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x44], bl
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x50c]
call fcn.004010e0
mov edx, dword [ebp - 0x38]
push edx
call fcn.00434c6c
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00402260
lea eax, [ebp - 0x24]
call fcn.00406ff0
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x405a44
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
call fcn.00406ff0
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x405b06
lea ecx, [ebp - 0x28]
call fcn.00402260
lea eax, [ebp - 0x24]
call fcn.00406ff0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
call fcn.00406ff0
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x405b06
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ab0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x405b06
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x518]
xor ecx, ebp
call fcn.0043436f
add ebp, 0x51c
mov esp, ebp
pop ebp
ret 0x10