Function at 0x46523d
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x50d1e7
call fcn.00509d88
sub esp, 0x10
push ebx
push esi
push edi
mov esi, str.eid1
lea eax, [ebp - 0x1c]
push esi
push eax
mov ebx, ecx
call fcn.004295c6
push eax
call fcn.004293ac
push dword [eax]
call fcn.004ed06f
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.004058cb
lea eax, [ebp - 0x1c]
push str.eid2
push eax
call fcn.004295c6
push eax
call fcn.004293ac
push dword [eax]
call fcn.004ed06f
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.004058cb
lea eax, [ebp - 0x1c]
push str.installreg
push eax
call fcn.004295c6
push eax
call fcn.004293ac
and dword [ebp - 4], 0
lea edi, [ebx + 0x34]
call fcn.00404ebe
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004058cb
lea eax, [ebp - 0x1c]
push 0x53f4d8
push eax
call fcn.004295c6
push eax
call fcn.004293ac
lea edi, [ebx + 0x38]
mov dword [ebp - 4], 1
call fcn.00404ebe
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004058cb
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
xor edi, edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00428e6a
add esp, 0x10
test eax, eax
je 0x46534b
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x465345
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 4], eax
lea edi, [ebx + 0x1c]
push esi
mov eax, edi
call fcn.00464e9f
test eax, eax
je 0x46537c
push esi
lea eax, [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00464df8
push dword [eax]
call fcn.004ed06f
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.004058cb
mov esi, str.eid2
push esi
mov eax, edi
call fcn.00464e9f
test eax, eax
je 0x4653af
push esi
lea eax, [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00464df8
push dword [eax]
call fcn.004ed06f
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.004058cb
mov esi, str.func
push esi
mov eax, edi
call fcn.00464e9f
test eax, eax
je 0x4653e2
push esi
lea eax, [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00464df8
push dword [eax]
call fcn.004ed06f
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.004058cb
push 0x53a77c
mov eax, edi
call fcn.00464e9f
test eax, eax
jne 0x465407
push 0x53b058
mov eax, edi
call fcn.00464e9f
test eax, eax
jne 0x465407
cmp dword [ebx + 0x10], eax
je 0x46540e
mov dword [ebx + 0x14], 0xf
push 0x53f6b8
mov eax, edi
call fcn.00464e9f
test eax, eax
je 0x4654c5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405b50
push str._dir
xor ecx, ecx
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.00407e69
mov edi, eax
test edi, edi
jl 0x4654b6
lea ecx, [edi + 5]
push 0x5397b0
mov dword [ebp - 0x1c], ecx
call fcn.00407e69
test eax, eax
mov edx, dword [ebp - 0x1c]
jle 0x46547d
mov ecx, eax
lea eax, [ebp - 0x1c]
sub ecx, edi
push eax
sub ecx, 5
mov eax, esi
call fcn.004060ca
mov byte [ebp - 4], 3
jmp 0x465498
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x1c]
sub ecx, edi
push eax
sub ecx, 5
lea eax, [ebp - 0x10]
call fcn.004060ca
mov byte [ebp - 4], 4
lea edi, [ebx + 0x3c]
call fcn.00404ebe
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004058cb
mov eax, edi
call fcn.00406509
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058cb
mov esi, str.from
lea edi, [ebx + 0x1c]
push esi
mov eax, edi
call fcn.00464e9f
test eax, eax
je 0x4654fb
push esi
lea eax, [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00464df8
push dword [eax]
call fcn.004ed06f
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.004058cb
mov eax, dword [ebx + 0x38]
cmp dword [eax - 0xc], 0
je 0x465551
mov eax, dword [ebx + 0x34]
cmp dword [eax - 0xc], 0
je 0x465551
call fcn.00427824
mov esi, eax
lea edi, [esi + 4]
lea eax, [ebx + 0x38]
call fcn.00404ebe
lea edi, [esi + 8]
lea eax, [ebx + 0x34]
call fcn.00404ebe
mov dword [esi + 0xc], 1
call fcn.00427824
cmp dword [eax + 0xc], 0
je 0x465551
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.00427930
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004058cb
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x46556b
mov ecx, eax
and cl, 1
dec cl
neg cl
sbb ecx, ecx
inc ecx
test eax, eax
mov dword [ebx + 0x10], ecx
jne 0x465572
mov dword [ebx + 0x14], 6
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042acf1
mov eax, dword [ebp - 0x1c]
test eax, eax
pop ecx
pop ecx
je 0x465599
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov esi, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
call fcn.0042b76d
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax + 0x38], esi
mov dword [eax + 0x34], ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret