Function at 0x4c8d30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601ced
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x6c2d9c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3d4], esi
mov edi, dword [esi]
xor eax, eax
mov dword [ebp - 0x3e8], 0
mov dword [ebp - 0x3d0], eax
cmp edi, dword [esi + 4]
je 0x4c988c
push 0
push 0x62c9f0
lea ecx, [ebp - 0x34c]
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0xf
mov byte [ebp - 0x34c], 0
call fcn.0044e410
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], 0
mov esi, dword [eax]
mov dword [ebp - 0x3c8], esi
cmp esi, eax
je 0x4c9837
nop dword [eax]
lea eax, [esi + 0x28]
mov ecx, edi
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0045c4e0
mov eax, dword [ebp - 0x408]
cmp byte [eax + 0xd], 0
jne 0x4c8e37
cmp dword [eax + 0x24], 0x10
lea ecx, [eax + 0x10]
mov dword [ebp - 0x3cc], ecx
jb 0x4c8e05
mov eax, dword [ecx]
mov dword [ebp - 0x3cc], eax
cmp dword [esi + 0x3c], 0x10
lea edx, [esi + 0x28]
jb 0x4c8e11
mov edx, dword [esi + 0x28]
push dword [ecx + 0x10]
push dword [ebp - 0x3cc]
push dword [esi + 0x38]
push edx
call fcn.0044f880
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x4c8e37
mov eax, dword [edi]
cmp dword [ebp - 0x408], eax
jne 0x4c8e5c
lea ecx, [ebp - 0x3c8]
call fcn.004bacc0
mov eax, dword [ebp - 0x3d4]
mov esi, dword [ebp - 0x3c8]
cmp esi, dword [eax + 0x18]
jne 0x4c8dd0
jmp 0x4c9837
add esi, 0x28
lea eax, [ebp - 0x34c]
cmp eax, esi
je 0x4c8e82
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4c8e73
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x34c]
push eax
call fcn.0044e410
cmp dword [ebp - 0x33c], 0
je 0x4c9837
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00572a10
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004615d0
push 1
push 0x62dab8
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00461460
push 3
push 0x63c6d0
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00461460
push 0x208
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.00572a10
add esp, 0x40
lea eax, [ebp - 0x31c]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c8f39
push 0
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x338], 0x10
lea eax, [ebp - 0x34c]
mov esi, dword [ebp - 0x3d4]
mov ecx, esi
cmovae eax, dword [ebp - 0x34c]
push eax
push edi
lea eax, [ebp - 0x364]
push eax
call fcn.004c98b0
cmp dword [ebp - 0x354], 0
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 1
mov ecx, esi
je 0x4c956e
cmp dword [ebp - 0x338], 0x10
cmovae eax, dword [ebp - 0x34c]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.004c9e80
cmp dword [ebp - 0x398], 0x10
lea ecx, [ebp - 0x3ac]
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 2
cmovae ecx, dword [ebp - 0x3ac]
cmp dword [ebp - 0x338], 0x10
push ecx
cmovae eax, dword [ebp - 0x34c]
mov ecx, esi
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004ca840
cmp dword [ebp - 0x380], 0x10
lea eax, [ebp - 0x394]
push 0x63b0a8
cmovae eax, dword [ebp - 0x394]
mov ecx, esi
push eax
mov byte [ebp - 4], 3
call fcn.004c9db0
mov dword [ebp - 0x3cc], eax
test eax, eax
jne 0x4c900f
mov esi, 0xc
mov dword [ebp - 0x3d0], esi
jmp 0x4c9084
cmp dword [ebp - 0x350], 0x10
lea esi, [ebp - 0x364]
cmovae esi, dword [ebp - 0x364]
xor eax, eax
mov dword [ebp - 0x3d0], eax
test esi, esi
je 0x4c9065
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jle 0x4c9065
push esi
mov esi, dword [ebp - 0x3cc]
push esi
call fcn.0044b510
add esp, 8
test eax, eax
jne 0x4c9075
mov dword [ebp - 0x3d0], 0xc
jmp 0x4c9075
mov esi, dword [ebp - 0x3cc]
mov dword [ebp - 0x3d0], 6
push esi
call fcn.0057bf1b
mov esi, dword [ebp - 0x3d0]
add esp, 4
push 1
push 0x104
call fcn.0058738b
add esp, 8
mov dword [ebp - 0x3c8], eax
test esi, esi
jne 0x4c94aa
test eax, eax
je 0x4c94b7
cmp dword [ebp - 0x338], 0x10
lea esi, [ebp - 0x34c]
push 0
cmovae esi, dword [ebp - 0x34c]
push 0
push 0xffffffffffffffff
push str.AMTConfigPath
push 0
push 0xfde9
mov dword [ebp - 0x3e4], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jle 0x4c94a4
test esi, esi
je 0x4c94a4
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jle 0x4c94a4
mov ecx, dword [ebp - 0x3d4]
push esi
call fcn.004cb750
test eax, eax
jne 0x4c94a4
push eax
push 0x62c9f0
push 0x104
push dword [ebp - 0x3c8]
call fcn.00461490
mov eax, dword [ebp - 0x3d4]
add esp, 0x10
mov esi, dword [eax]
cmp esi, dword [eax + 4]
je 0x4c94a4
nop word [eax + eax]
mov eax, dword [ebp - 0x3e4]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0xf
mov byte [ebp - 0x334], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c9174
sub eax, edx
lea ecx, [ebp - 0x334]
push eax
push dword [ebp - 0x3e4]
call fcn.0044e410
lea eax, [ebp - 0x334]
mov ecx, esi
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0045c4e0
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x334]
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3d8], ecx
cmp byte [eax + 0xd], 0
jne 0x4c9208
cmp dword [eax + 0x24], 0x10
lea edx, [eax + 0x10]
mov dword [ebp - 0x3cc], edx
jb 0x4c91d9
mov eax, dword [edx]
mov dword [ebp - 0x3cc], eax
push dword [edx + 0x10]
cmp dword [ebp - 0x320], 0x10
lea eax, [ebp - 0x334]
push dword [ebp - 0x3cc]
cmovae eax, ecx
push dword [ebp - 0x324]
push eax
call fcn.0044f880
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x4c9210
mov eax, dword [esi]
mov dword [ebp - 0x3dc], eax
mov eax, dword [ebp - 0x320]
cmp eax, 0x10
jb 0x4c924c
mov ecx, dword [ebp - 0x3d8]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c9242
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov eax, dword [ebp - 0x3dc]
cmp eax, dword [esi]
je 0x4c936d
add eax, 0x28
mov dword [ebp - 0x3cc], eax
je 0x4c936d
push 0xd
push str.AMTConfigPath
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0xf
mov byte [ebp - 0x334], 0
call fcn.0044e410
mov ecx, dword [ebp - 0x3cc]
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0045c4e0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x334]
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3e0], ecx
cmp byte [eax + 0xd], 0
jne 0x4c9313
cmp dword [eax + 0x24], 0x10
lea edx, [eax + 0x10]
mov dword [ebp - 0x3dc], edx
jb 0x4c92e4
mov eax, dword [edx]
mov dword [ebp - 0x3dc], eax
push dword [edx + 0x10]
cmp dword [ebp - 0x320], 0x10
lea eax, [ebp - 0x334]
push dword [ebp - 0x3dc]
cmovae eax, ecx
push dword [ebp - 0x324]
push eax
call fcn.0044f880
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x4c9321
mov eax, dword [ebp - 0x3cc]
mov eax, dword [eax]
mov dword [ebp - 0x3d8], eax
mov eax, dword [ebp - 0x320]
cmp eax, 0x10
jb 0x4c935d
mov ecx, dword [ebp - 0x3e0]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c9353
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov eax, dword [ebp - 0x3cc]
mov ecx, dword [ebp - 0x3d8]
cmp ecx, dword [eax]
jne 0x4c9384
mov eax, dword [ebp - 0x3d4]
add esi, 8
cmp esi, dword [eax + 4]
jne 0x4c9150
jmp 0x4c94a4
add ecx, 0x28
cmp dword [ecx + 0x14], 0x10
jb 0x4c938f
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x334]
call fcn.00452d90
mov ecx, dword [ebp - 0x324]
cmp ecx, 0x104
jae 0x4c93d6
cmp dword [ebp - 0x320], 0x10
lea eax, [ebp - 0x334]
push ecx
cmovae eax, dword [ebp - 0x334]
push eax
push 0x104
push dword [ebp - 0x3c8]
call fcn.00461490
add esp, 0x10
xor esi, esi
jmp 0x4c93db
mov esi, 0xd
lea ecx, [ebp - 0x334]
call fcn.00438a90
test esi, esi
jne 0x4c94a4
push dword [ebp - 0x3c8]
call fcn.00460be0
add esp, 4
test eax, eax
je 0x4c94a4
mov ecx, dword [ebp - 0x3d4]
push 0x63b0a8
push dword [ebp - 0x3c8]
call fcn.004c9db0
mov dword [ebp - 0x3d8], eax
test eax, eax
jne 0x4c9430
mov dword [ebp - 0x3d0], 0xc
jmp 0x4c94a4
cmp dword [ebp - 0x350], 0x10
lea esi, [ebp - 0x364]
mov dword [ebp - 0x3d0], 0
cmovae esi, dword [ebp - 0x364]
test esi, esi
je 0x4c948b
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jle 0x4c948b
push esi
mov esi, dword [ebp - 0x3d8]
push esi
call fcn.0044b510
add esp, 8
test eax, eax
jne 0x4c949b
mov dword [ebp - 0x3d0], 0xc
jmp 0x4c949b
mov esi, dword [ebp - 0x3d8]
mov dword [ebp - 0x3d0], 6
push esi
call fcn.0057bf1b
add esp, 4
mov eax, dword [ebp - 0x3c8]
test eax, eax
je 0x4c94b7
push eax
call fcn.00587396
add esp, 4
mov edx, dword [ebp - 0x380]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4c94f5
mov ecx, dword [ebp - 0x394]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c94eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov edx, dword [ebp - 0x398]
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x380], 0xf
mov byte [ebp - 0x394], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x4c954e
mov ecx, dword [ebp - 0x3ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c9544
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov dword [ebp - 0x39c], 0
mov dword [ebp - 0x398], 0xf
mov byte [ebp - 0x3ac], 0
jmp 0x4c97de
cmp dword [ebp - 0x338], 0x10
cmovae eax, dword [ebp - 0x34c]
push eax
lea eax, [ebp - 0x3c4]
push eax
call fcn.004caa80
cmp dword [ebp - 0x3b0], 0x10
lea edx, [ebp - 0x3c4]
mov byte [ebp - 4], 4
cmovae edx, dword [ebp - 0x3c4]
mov ecx, edx
mov dword [ebp - 0x3f0], 0
mov dword [ebp - 0x3ec], 0xf
mov byte [ebp - 0x400], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c95c1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x400]
call fcn.0044e410
xor eax, eax
mov byte [ebp - 4], 5
push eax
push 0x62d970
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 7
mov word [ebp - 0x334], ax
call fcn.0044e500
mov eax, dword [ebp - 0x3f0]
inc eax
mov byte [ebp - 4], 6
push 2
push eax
mov dword [ebp - 0x3e0], eax
call fcn.0058738b
mov esi, eax
add esp, 8
test esi, esi
je 0x4c9685
cmp dword [ebp - 0x3ec], 0x10
lea eax, [ebp - 0x400]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x400]
push eax
push dword [ebp - 0x3e0]
lea eax, [ebp - 0x404]
push esi
push eax
call fcn.005876e1
mov ecx, esi
add esp, 0x14
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9660
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x334]
call fcn.0044e500
push esi
call fcn.00587396
add esp, 4
movups xmm0, xmmword [ebp - 0x334]
mov edx, dword [ebp - 0x3ec]
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x37c], xmm0
movq xmm0, qword [ebp - 0x324]
movq qword [ebp - 0x36c], xmm0
cmp edx, 0x10
jb 0x4c96e1
mov ecx, dword [ebp - 0x400]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c96d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov eax, dword [ebp - 0x3e8]
or eax, 2
mov dword [ebp - 0x3f0], 0
cmp dword [ebp - 0x368], 8
mov dword [ebp - 0x3e8], eax
lea eax, [ebp - 0x37c]
cmovae eax, dword [ebp - 0x37c]
push eax
mov dword [ebp - 0x3ec], 0xf
mov byte [ebp - 0x400], 0
call fcn.00587d0b
mov edx, dword [ebp - 0x368]
add esp, 4
cmp edx, 8
jb 0x4c9768
mov ecx, dword [ebp - 0x37c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c975e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov edx, dword [ebp - 0x3b0]
xor eax, eax
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x368], 7
mov word [ebp - 0x37c], ax
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x4c97c3
mov ecx, dword [ebp - 0x3c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c97b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov dword [ebp - 0x3b4], 0
mov dword [ebp - 0x3b0], 0xf
mov byte [ebp - 0x3c4], 0
mov edx, dword [ebp - 0x350]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4c981c
mov ecx, dword [ebp - 0x364]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c9812
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x350], 0xf
mov byte [ebp - 0x364], 0
mov edx, dword [ebp - 0x338]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c9874
mov ecx, dword [ebp - 0x34c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c986a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c98a7
push edx
push ecx
call fcn.0055d3b2
add esp, 8
mov esi, dword [ebp - 0x3d4]
add edi, 8
cmp edi, dword [esi + 4]
jne 0x4c8d82
mov eax, dword [ebp - 0x3d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d371
mov esp, ebp
pop ebp
ret
call fcn.0057bc5b
int3