Function at 0x457770
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 [0x4abca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x4af060], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
rol ax, 8
movzx eax, ax
mov dword [0x4af258], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4577df
cmp dword [ebp - 0x108], 2
jne 0x4577df
cmp dword [ebp - 0x114], 5
ja 0x4577d5
jne 0x4577df
cmp dword [ebp - 0x110], 0
je 0x4577df
mov dword [0x4af254], 1
push esi
call fcn.00442c40
mov dword [0x4af194], 0x43d010
mov dword [0x4af184], 0x425160
mov dword [0x4af188], 0x4251b0
mov dword [0x4af18c], 0x425cf0
mov dword [0x4af190], 0x425da0
mov dword [0x4af198], 0x425600
mov dword [0x4af1cc], 0x4255e0
mov dword [0x4af19c], 0x4256f0
mov dword [0x4af1d0], 0x425690
mov dword [0x4af1a0], 0x425320
mov dword [0x4af1d4], 0x425300
mov dword [0x4af1a4], 0x425410
mov dword [0x4af1b0], 0x425780
mov dword [0x4af1b4], 0x425960
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx ecx, word [esi]
lea edx, [esi + 2]
cmp ecx, 0x22
je 0x457886
mov edx, esi
xor eax, eax
cmp ecx, 0x22
sete al
lea eax, [eax*2 + 0x20]
push eax
push edx
call fcn.00471068
add esp, 8
test eax, eax
je 0x4578a6
lea esi, [eax + 2]
mov ecx, esi
call fcn.00443170
push 2
push 0x104
call fcn.004737f9
push 2
push 0x104
mov dword [0x4aee44], eax
call fcn.004737f9
mov ecx, dword [0x4aee44]
add esp, 0x10
mov dword [0x4aee38], eax
test ecx, ecx
je 0x457ce5
test eax, eax
je 0x457ce5
push edi
push 0x104
push ecx
push dword [0x4af060]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [0x4aee38]
push 2
push 0x104
call fcn.004737f9
mov esi, eax
add esp, 8
test esi, esi
je 0x45793a
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0x49c3d0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call fcn.0047380f
add esp, 4
mov eax, dword [0x4aee38]
cmp word [eax], 0
je 0x457ce4
push eax
call fcn.004749fa
add esp, 4
push 0
push dword [0x4aee38]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x457ce4
mov ecx, dword [0x4aee38]
call fcn.00426200
call fcn.00408270
test eax, eax
jne 0x457ce4
mov ecx, dword [0x4aee38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457990
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.004737f9
mov edx, dword [0x4aee38]
add esp, 8
mov dword [0x4af058], 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 0x4579c0
mov edx, dword [0x4af058]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4579e0
sub ecx, esi
sar ecx, 1
cmp ecx, 3
jle 0x457a03
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x457a03
xor eax, eax
mov word [edx + ecx*2 - 2], ax
mov dword [0x4af224], 0
call dword [sym.imp.MMFS2.dll_Ordinal_1055]
push dword [0x4af058]
call fcn.004774c8
mov ecx, eax
add esp, 4
mov dword [0x4af21c], ecx
test ecx, ecx
je 0x457c1a
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457a34
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 0xc]
push eax
call fcn.004737f9
mov edx, dword [0x4af21c]
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 0x457a60
cmp word [esi], cx
je 0x457ab3
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457a80
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x457ab3
lea edi, [esi - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x457aa0
mov eax, dword [0x49c464]
mov dword [edi], eax
lea ecx, [esi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x457ab6
mov eax, dword [str.stdrtd.txt]
mov dword [ecx], eax
mov eax, dword [0x49c7a4]
mov dword [ecx + 4], eax
mov eax, dword [0x49c7a8]
mov dword [ecx + 8], eax
mov eax, dword [0x49c7ac]
mov dword [ecx + 0xc], eax
mov eax, dword [0x49c7b0]
mov dword [ecx + 0x10], eax
mov ax, word [0x49c7b4]
push 0
mov word [ecx + 0x14], ax
mov ecx, 0x4af378
push esi
push dword [0x4af060]
call fcn.004648a0
push esi
call fcn.0047380f
add esp, 4
cmp dword [0x4af21c], 0
je 0x457c1a
push str.mmfs2.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [ebp - 0x11c], edi
test edi, edi
je 0x457c1a
mov ecx, dword [0x4af21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457b40
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 0xb]
push eax
call fcn.004737f9
mov edx, dword [0x4af21c]
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 0x457b70
cmp word [esi], cx
je 0x457bc9
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457b90
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x457bc9
lea edi, [esi - 2]
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x457bb0
mov eax, dword [0x49c464]
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 0x457bd0
mov eax, dword [str.mmfs2.txt]
mov ecx, 0x4af378
mov dword [edx], eax
mov eax, dword [0x49c7d0]
mov dword [edx + 4], eax
mov eax, dword [0x49c7d4]
mov dword [edx + 8], eax
mov eax, dword [0x49c7d8]
push 0
mov dword [edx + 0xc], eax
mov eax, dword [0x49c7dc]
push esi
push edi
mov dword [edx + 0x10], eax
call fcn.004648a0
push esi
call fcn.0047380f
add esp, 4
xor esi, esi
cmp dword [0x4ada14], esi
jne 0x457c32
mov esi, dword [0x4af1fc]
test esi, esi
je 0x457ce4
call fcn.00442d20
test eax, eax
jne 0x457cc8
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
cmp dword [0x4af264], eax
jne 0x457c7a
push str.krdp
call edi
movzx eax, ax
push str.kprc
mov dword [0x4af264], eax
call edi
movzx eax, ax
push str.kspc
mov dword [0x4af260], eax
call edi
movzx eax, ax
mov dword [0x4af26c], eax
push str.knum
call edi
movzx eax, ax
mov dword [0x4af268], eax
call fcn.00424cd0
test eax, eax
je 0x457ce4
push 0
push dword [0x4af060]
call dword [sym.imp.MMFS2.dll_Ordinal_2]
mov ecx, eax
mov dword [0x4af05c], ecx
cmp ecx, 0x20
ja 0x457d02
xor eax, eax
mov dword [0x4af05c], 0
cmp ecx, 1
setne al
lea eax, [eax*8 + 0xf]
test eax, eax
jle 0x457ce4
test byte [0x4af20e], 1
je 0x457ce4
push ecx
mov ecx, dword [0x4af070]
mov edx, eax
call fcn.00443fa0
add esp, 4
pop edi
call fcn.00444490
call fcn.004089c0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046fd1f
mov esp, ebp
pop ebp
ret 0x10
push 4
push 0x42000000
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.00403190
mov edi, eax
add esp, 0x10
test edi, edi
je 0x457ce4
call dword [sym.imp.MMFS2.dll_Ordinal_794]
push 2
push dword [0x4af058]
mov ecx, eax
mov dword [0x4af088], eax
call dword [sym.imp.MMFS2.dll_Ordinal_1053]
mov esi, dword [0x4af058]
call dword [sym.imp.MMFS2.dll_Ordinal_795]
push 2
push esi
mov ecx, eax
mov dword [0x4af08c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_1054]
cmp dword [0x4af090], 0
jne 0x457d87
mov ecx, dword [0x4af08c]
test ecx, ecx
je 0x457d87
push dword [0x4af070]
call dword [sym.imp.MMFS2.dll_Ordinal_389]
mov dword [0x4af090], eax
test eax, eax
je 0x457d87
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 4]
mov ecx, edi
call fcn.00406340
test eax, eax
je 0x457da6
xor edx, edx
mov ecx, edi
call fcn.00406540
test eax, eax
jne 0x457d92
mov ecx, edi
call fcn.004067a0
mov ecx, edi
call fcn.00405330
jmp 0x457ce4