Function at 0x45ceb0
Capabilities:
Accept command line arguments
Check os version
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4b2ca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x4b60b0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
rol ax, 8
movzx eax, ax
mov dword [0x4b62a8], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45cf1f
cmp dword [ebp - 0x108], 2
jne 0x45cf1f
cmp dword [ebp - 0x114], 5
ja 0x45cf15
jne 0x45cf1f
cmp dword [ebp - 0x110], 0
je 0x45cf1f
mov dword [0x4b62a4], 1
push esi
call fcn.00446730
mov dword [0x4b61e4], 0x440600
mov dword [0x4b61d4], 0x4273f0
mov dword [0x4b61d8], 0x427440
mov dword [0x4b61dc], 0x427fa0
mov dword [0x4b61e0], 0x428050
mov dword [0x4b61e8], 0x427890
mov dword [0x4b621c], 0x427870
mov dword [0x4b61ec], 0x427980
mov dword [0x4b6220], 0x427920
mov dword [0x4b61f0], 0x4275b0
mov dword [0x4b6224], 0x427590
mov dword [0x4b61f4], 0x4276a0
mov dword [0x4b6200], 0x427a10
mov dword [0x4b6204], 0x427c10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx ecx, word [esi]
lea edx, [esi + 2]
cmp ecx, 0x22
je 0x45cfc6
mov edx, esi
xor eax, eax
cmp ecx, 0x22
sete al
lea eax, [eax*2 + 0x20]
push eax
push edx
call fcn.004785a9
add esp, 8
test eax, eax
je 0x45cfe6
lea esi, [eax + 2]
mov ecx, esi
call fcn.00446c60
push 2
push 0x104
call fcn.0047aab9
push 2
push 0x104
mov dword [0x4b5e94], eax
call fcn.0047aab9
mov ecx, dword [0x4b5e94]
add esp, 0x10
mov dword [0x4b5e88], eax
test ecx, ecx
je 0x45d425
test eax, eax
je 0x45d425
push edi
push 0x104
push ecx
push dword [0x4b60b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [0x4b5e88]
push 2
push 0x104
call fcn.0047aab9
mov esi, eax
add esp, 8
test esi, esi
je 0x45d07a
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0x4a3388
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call fcn.0047aacf
add esp, 4
mov eax, dword [0x4b5e88]
cmp word [eax], 0
je 0x45d424
push eax
call fcn.0047bcba
add esp, 4
push 0
push dword [0x4b5e88]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x45d424
mov ecx, dword [0x4b5e88]
call fcn.00428c20
call fcn.00408ed0
test eax, eax
jne 0x45d424
mov ecx, dword [0x4b5e88]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d0d0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.0047aab9
mov edx, dword [0x4b5e88]
add esp, 8
mov dword [0x4b60a8], eax
nop dword [eax + eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x45d100
mov edx, dword [0x4b60a8]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d120
sub ecx, esi
sar ecx, 1
cmp ecx, 3
jle 0x45d143
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x45d143
xor eax, eax
mov word [edx + ecx*2 - 2], ax
mov dword [0x4b6274], 0
call dword [sym.imp.MMFS2.dll_Ordinal_1055]
push dword [0x4b60a8]
call fcn.0047e9e3
mov ecx, eax
add esp, 4
mov dword [0x4b626c], ecx
test ecx, ecx
je 0x45d35a
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d174
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 0xc]
push eax
call fcn.0047aab9
mov edx, dword [0x4b626c]
add esp, 8
mov esi, eax
sub eax, edx
nop dword [eax + eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [eax + edx - 2], cx
test cx, cx
jne 0x45d1a0
cmp word [esi], cx
je 0x45d1f3
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d1c0
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x45d1f3
lea edi, [esi - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45d1e0
mov eax, dword [0x4a3430]
mov dword [edi], eax
lea ecx, [esi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x45d1f6
mov eax, dword [str.stdrtd.txt]
mov dword [ecx], eax
mov eax, dword [0x4a37a4]
mov dword [ecx + 4], eax
mov eax, dword [0x4a37a8]
mov dword [ecx + 8], eax
mov eax, dword [0x4a37ac]
mov dword [ecx + 0xc], eax
mov eax, dword [0x4a37b0]
mov dword [ecx + 0x10], eax
mov ax, word [0x4a37b4]
push 0
mov word [ecx + 0x14], ax
mov ecx, 0x4b64e8
push esi
push dword [0x4b60b0]
call fcn.0046bd50
push esi
call fcn.0047aacf
add esp, 4
cmp dword [0x4b626c], 0
je 0x45d35a
push str.mmfs2.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [ebp - 0x11c], edi
test edi, edi
je 0x45d35a
mov ecx, dword [0x4b626c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d280
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 0xb]
push eax
call fcn.0047aab9
mov edx, dword [0x4b626c]
add esp, 8
mov esi, eax
sub eax, edx
nop word [eax + eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [eax + edx - 2], cx
test cx, cx
jne 0x45d2b0
cmp word [esi], cx
je 0x45d309
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d2d0
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x45d309
lea edi, [esi - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45d2f0
mov eax, dword [0x4a3430]
mov dword [edi], eax
mov edi, dword [ebp - 0x11c]
lea edx, [esi - 2]
nop dword [eax]
mov ax, word [edx + 2]
lea edx, [edx + 2]
test ax, ax
jne 0x45d310
mov eax, dword [str.mmfs2.txt]
mov ecx, 0x4b64e8
mov dword [edx], eax
mov eax, dword [0x4a37d0]
mov dword [edx + 4], eax
mov eax, dword [0x4a37d4]
mov dword [edx + 8], eax
mov eax, dword [0x4a37d8]
push 0
mov dword [edx + 0xc], eax
mov eax, dword [0x4a37dc]
push esi
push edi
mov dword [edx + 0x10], eax
call fcn.0046bd50
push esi
call fcn.0047aacf
add esp, 4
xor esi, esi
cmp dword [0x4b4a24], esi
jne 0x45d372
mov esi, dword [0x4b624c]
test esi, esi
je 0x45d424
call fcn.00446810
test eax, eax
jne 0x45d408
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
cmp dword [0x4b62b4], eax
jne 0x45d3ba
push str.krdp
call edi
movzx eax, ax
push str.kprc
mov dword [0x4b62b4], eax
call edi
movzx eax, ax
push str.kspc
mov dword [0x4b62b0], eax
call edi
movzx eax, ax
mov dword [0x4b62bc], eax
push str.knum
call edi
movzx eax, ax
mov dword [0x4b62b8], eax
call fcn.00426f60
test eax, eax
je 0x45d424
push 0
push dword [0x4b60b0]
call dword [sym.imp.MMFS2.dll_Ordinal_2]
mov ecx, eax
mov dword [0x4b60ac], ecx
cmp ecx, 0x20
ja 0x45d442
xor eax, eax
mov dword [0x4b60ac], 0
cmp ecx, 1
setne al
lea eax, [eax*8 + 0xf]
test eax, eax
jle 0x45d424
test byte [0x4b625e], 1
je 0x45d424
push ecx
mov ecx, dword [0x4b60c0]
mov edx, eax
call fcn.00447ad0
add esp, 4
pop edi
call fcn.00447fc0
call fcn.00409620
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00476fd3
mov esp, ebp
pop ebp
ret 0x10
push 4
push 0x42000000
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.00403250
mov edi, eax
add esp, 0x10
test edi, edi
je 0x45d424
call dword [sym.imp.MMFS2.dll_Ordinal_794]
push dword [0x4b4a28]
mov ecx, eax
mov dword [0x4b60d8], eax
push dword [0x4b60a8]
call dword [sym.imp.MMFS2.dll_Ordinal_1053]
mov eax, dword [0x4b60e4]
test eax, eax
je 0x45d4b0
mov eax, dword [eax + 0x3bc]
test eax, eax
je 0x45d4b0
test dword [eax], 0x40000000
je 0x45d4b0
test byte [0x4b60cc], 0x40
je 0x45d4b0
mov ecx, dword [0x4b60d8]
push 1
call dword [sym.imp.MMFS2.dll_Ordinal_1128]
mov esi, dword [0x4b60a8]
call dword [sym.imp.MMFS2.dll_Ordinal_795]
push dword [0x4b4a28]
mov ecx, eax
mov dword [0x4b60dc], eax
push esi
call dword [sym.imp.MMFS2.dll_Ordinal_1054]
cmp dword [0x4b60e0], 0
jne 0x45d501
mov ecx, dword [0x4b60dc]
test ecx, ecx
je 0x45d501
push dword [0x4b60c0]
call dword [sym.imp.MMFS2.dll_Ordinal_389]
mov dword [0x4b60e0], eax
test eax, eax
je 0x45d501
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 4]
mov ecx, edi
call fcn.00406990
test eax, eax
je 0x45d524
nop dword [eax]
xor edx, edx
mov ecx, edi
call fcn.00406b90
test eax, eax
jne 0x45d510
mov ecx, edi
call fcn.00406df0
mov ecx, edi
call fcn.00405870
jmp 0x45d424