Function at 0x4332c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x294
mov eax, dword [0x4b6640]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push edi
mov edi, dword [esp + 0x2ac]
call fcn.0047f6d6
xor ebx, ebx
mov eax, 7
push 0x206
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x9a]
push ebx
push eax
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
mov word [esp + 0xa0], bx
call fcn.00462ef0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x94]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x433340
sub eax, edx
push esi
sar eax, 1
push eax
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x44]
call fcn.00409a40
mov eax, dword [esp + 0x50]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x433372
call fcn.00462e47
mov eax, dword [esp + 0x40]
mov ebp, 8
cmp dword [esp + 0x54], ebp
jae 0x433385
lea eax, [esp + 0x40]
cmp word [eax + esi*2], 0x5c
je 0x4333d1
push 1
push 0x4a05a4
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.00409a40
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
call fcn.00409840
cmp dword [esp + 0x38], ebp
jb 0x4333d1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004629d9
add esp, 4
push str.Kernel32.dll
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.0040a130
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
call fcn.00409950
cmp dword [esp + 0x8c], ebp
jb 0x43340b
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004629d9
add esp, 4
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x433419
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x433444
push str.SetDllDirectoryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43343d
push 0x4a04e3
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [0x4a185c]
mov ax, word [0x4a1860]
lea ecx, [esp + 0x90]
push ecx
push edi
xor esi, esi
mov dword [esp + 0x98], edx
mov word [esp + 0x9c], ax
call fcn.0042cd80
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x4334d4
push str.RegServer
push edi
call fcn.0042cdd0
add esp, 8
test eax, eax
jne 0x43348f
lea esi, [eax + 1]
jmp 0x4334d4
push str.UnregServer
push edi
call fcn.0042cdd0
add esp, 8
test eax, eax
jne 0x4334a6
lea esi, [eax + 2]
jmp 0x4334d4
push str.Embedding
push edi
call fcn.0042cdd0
add esp, 8
test eax, eax
jne 0x4334bd
lea esi, [eax + 3]
jmp 0x4334d4
push str.Install
push edi
call fcn.0042cdd0
add esp, 8
test eax, eax
jne 0x4334d4
mov esi, 4
lea eax, [esi - 1]
xor edi, edi
cmp eax, 3
ja case.default.0x4334e2
jmp dword [eax*4 + 0x433640]
mov edx, dword [esp + 0x2b4]
push edx
mov ecx, 0x4b8c28
call fcn.0042f810
mov edi, eax
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.00439770
add esp, 8
cmp dword [esp + 0x88], ebx
je 0x433579
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00442c70
mov eax, dword [esp + 0x2c]
add esp, 8
cmp esi, 1
jne 0x433557
cmp dword [esp + 0x38], 0x10
jae 0x43354a
lea eax, [esp + 0x24]
push 0x4a1900
push eax
call fcn.00434e70
jmp 0x43356d
cmp dword [esp + 0x38], 0x10
jae 0x433562
lea eax, [esp + 0x24]
push 0x4a1900
push eax
call fcn.00435050
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00417ab0
cmp dword [esp + 0x8c], ebp
jb case.default.0x4334e2
mov eax, dword [esp + 0x78]
push eax
call fcn.004629d9
add esp, 4
jmp case.default.0x4334e2
lea ecx, [esp + 0x10]
push ecx
call fcn.0042c780
mov ecx, dword [eax]
add esp, 4
call fcn.0042c8a0
lea ecx, [esp + 0x10]
call fcn.0041d270
mov edx, dword [esp + 0x2b4]
push edx
mov ecx, 0x4b8c28
call fcn.0042f810
mov edi, eax
lea eax, [esp + 0x18]
push eax
call fcn.0042c780
mov ecx, dword [eax]
add esp, 4
call fcn.00429090
lea ecx, [esp + 0x18]
call fcn.0041d270
call fcn.00426420
jmp case.default.0x4334e2
call fcn.00432970
cmp dword [esp + 0x54], ebp
pop esi
jb 0x4335ff
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004629d9
add esp, 4
cmp dword [esp + 0x6c], ebp
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x433623
mov edx, dword [esp + 0x58]
push edx
call fcn.004629d9
add esp, 4
mov ecx, dword [esp + 0x29c]
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004629a0
add esp, 0x294
ret 0x10