Function at 0x405d00
Capabilities:
Load windows common language runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ad7b
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x40f394]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x448], edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x470], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x46c], 0
test edi, edi
je 0x4066ed
xor eax, eax
cmp ax, word [edi]
je 0x4066ed
test ebx, ebx
je 0x4066ed
cmp ax, word [ebx]
je 0x4066ed
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], eax
cmp edx, 2
jne 0x405f5a
mov eax, dword [0x402e50]
mov ebx, dword [0x402e58]
mov edi, dword [0x402e5c]
mov esi, dword [0x402e60]
mov dword [ebp - 0x424], eax
mov eax, dword [0x402e54]
push 0x1f4
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x410]
push 0
push eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x414], esi
call int.0040ace9
mov eax, dword [0x402e50]
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov eax, dword [0x402e54]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x208]
push 0x1f4
push 0
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], esi
call int.0040ace9
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.00409959
mov ebx, eax
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405e62
push 0x104
lea eax, [ebp - 0x424]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00409959
mov edi, eax
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405e9b
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405a58
cmp dword [section..data], 5
jbe 0x405f49
sub esp, 8
call fcn.00405b51
test al, al
je 0x405f49
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0x2000000
mov dword [ebp - 0x440], eax
mov edx, 0x404ed9
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x474], edi
push eax
lea eax, [ebp - 0x474]
mov dword [ebp - 0x47c], ebx
push eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x480], 2
push eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x480]
push eax
sub esp, 8
call fcn.004058d0
call fcn.00405a9e
mov ebx, dword [ebp - 0x484]
mov edi, dword [ebp - 0x448]
push edi
call fcn.004079a0
test al, al
jne 0x4066e2
push ebx
call fcn.004079a0
test al, al
jne 0x4066e2
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x42c]
push eax
push 0x402b50
push 0x402b90
push 4
push 0x402df4
push ebx
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
cmp eax, 0x80131700
je 0x4066c3
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4066c3
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x41022c]
call esi
test eax, eax
jns 0x405ffd
mov edx, dword [0x40f790]
push eax
push 5
push 0
mov ecx, dword [edx]
push edx
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x41022c]
call esi
add esp, 0x10
lea ecx, [ebp - 0x42c]
call fcn.00408897
mov esi, 0xffff0000
jmp 0x406617
cmp dword [ebp - 0x468], 0
mov byte [ebp - 0x425], 1
je 0x4066e2
mov ebx, dword [ebp + 0x1c]
mov eax, ebx
mov edi, dword [ebp + 0x18]
sub eax, edi
dec eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x44c]
push eax
push 1
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov esi, eax
mov dword [ebp - 0x440], esi
test esi, esi
je 0x4066e2
cmp dword [ebp - 0x44c], 0
mov dword [ebp - 0x444], 0
je 0x4060bb
inc edi
cmp edi, ebx
jge 0x4060bb
jmp 0x406070
mov eax, dword [ebp - 0x468]
push dword [eax + edi*4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
je 0x4066e2
push ebx
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
push ebx
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x444]
test esi, esi
js 0x40619b
mov esi, dword [ebp - 0x440]
inc edi
cmp edi, dword [ebp + 0x1c]
jl 0x406070
mov al, byte [ebp - 0x425]
test al, al
je 0x4066e2
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x434], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
mov esi, dword [ecx + 0x34]
lea ecx, [ebp - 0x434]
push ecx
push eax
mov ecx, esi
call dword [0x41022c]
call esi
mov ecx, eax
test ecx, ecx
js 0x40667b
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x40667b
mov ecx, dword [eax]
mov esi, dword [ecx]
lea ecx, [ebp - 0x430]
push ecx
push 0x402b70
push eax
mov ecx, esi
call dword [0x41022c]
call esi
mov ecx, eax
test ecx, ecx
js 0x40667b
cmp dword [ebp - 0x430], 0
je 0x40667b
mov dword [ebp - 0x438], 0
push 0xc
mov byte [ebp - 4], 3
call fcn.00408990
mov edi, eax
add esp, 4
mov dword [ebp - 0x448], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x4061a2
mov esi, dword [ebp - 0x470]
push esi
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
jne 0x4061a4
test esi, esi
jne 0x4066f7
jmp 0x4061a4
xor al, al
jmp 0x4060c1
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x470], edi
test edi, edi
je 0x4066fc
push 0xc
mov byte [ebp - 4], 5
call fcn.00408990
mov ebx, eax
add esp, 4
mov dword [ebp - 0x448], ebx
mov byte [ebp - 4], 6
test ebx, ebx
je 0x4061f9
push 0x402418
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
je 0x406701
jmp 0x4061fb
xor ebx, ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x448], ebx
test ebx, ebx
je 0x406706
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
mov esi, dword [ecx + 0x94]
lea ecx, [ebp - 0x438]
push ecx
push dword [ebx]
mov ecx, esi
push dword [edi]
push eax
call dword [0x41022c]
call esi
mov ecx, eax
test ecx, ecx
js 0x406643
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x406643
xor ecx, ecx
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x460], ecx
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x458], ecx
mov word [ebp - 0x464], cx
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov esi, dword [ecx + 0x38]
lea ecx, [ebp - 0x464]
push ecx
push eax
mov ecx, esi
call dword [0x41022c]
call esi
test eax, eax
jns 0x4062fa
mov ecx, dword [0x40f798]
push eax
push 7
push 0
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x41022c]
call esi
add esp, 0x10
mov esi, 0xffff0000
lea ecx, [ebp - 0x464]
call fcn.0040b91f
mov ecx, ebx
call fcn.00408911
mov ecx, edi
call fcn.00408911
lea ecx, [ebp - 0x438]
invalid