Function at 0x476e90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdce3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov esi, dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004745f0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0
cmp eax, 1
jne 0x476f41
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax], 0x2e
je 0x476f6b
mov dword [ebp - 0x98], 0
call fcn.004732d0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00478c40
add esp, 0xc
cmp dword [ebp - 0xa4], 3
jne 0x476f92
test esi, esi
je 0x476f35
mov dword [esi], 0
call fcn.004732d0
mov dword [esi + 4], eax
mov byte [ebp - 0x8d], 0
jmp 0x477262
cmp eax, 2
jne 0x476eee
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x2e
jne 0x476eee
cmp ecx, 8
lea eax, [ebp - 0x40]
cmovae eax, edx
cmp word [eax + 2], 0x2e
jne 0x476eee
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004751f0
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00476e90
add esp, 8
mov byte [ebp - 0x8d], al
lea ecx, [ebp - 0x28]
jmp 0x47725d
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.004751f0
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
je 0x4770e5
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00478c40
add esp, 0xc
cmp dword [ebp - 0xa4], 1
jne 0x4770e5
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00476e90
mov ecx, dword [ebp - 0x98]
xor edx, edx
add esp, 8
mov byte [ebp - 4], 2
test ecx, ecx
mov eax, fcn.00402150
cmove eax, edx
test eax, eax
je 0x4770e5
test esi, esi
jne 0x4770da
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x28]
push 0x30
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], dl
call fcn.00402740
movups xmm0, xmmword [str.mars_boost::filesystem::create_directories]
mov ecx, eax
mov dword [ebp - 0x18], 0x2a
mov dword [ebp - 0x14], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x5c23b4]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x5c23c4]
movq qword [ecx + 0x20], xmm0
mov ax, word [0x5c23cc]
mov word [ecx + 0x28], ax
mov byte [ecx + 0x2a], 0
mov dword [ebp - 0x28], ecx
push dword [ebp - 0x94]
lea eax, [ebp - 0x58]
push dword [ebp - 0x98]
lea ecx, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00476b70
push eax
mov byte [ebp - 4], 5
call fcn.00472640
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.00476cc0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x477253
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x477237
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4772b9
jmp 0x477237
mov eax, dword [ebp - 0x94]
jmp 0x47724e
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4770ef
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x47711a
test esi, esi
je 0x47710e
mov dword [esi], 0
call fcn.004732d0
mov dword [esi + 4], eax
mov byte [ebp - 0x8d], 1
jmp 0x47725a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 0
call fcn.004732d0
cmp dword [ebp - 0x9c], 0xb7
mov dword [ebp - 0xa0], eax
jne 0x47717f
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xac]
push edi
push eax
call fcn.00478c40
add esp, 0xc
cmp dword [ebp - 0xac], 3
jne 0x47717f
test esi, esi
je 0x477253
mov dword [esi], 0
call fcn.004732d0
jmp 0x477250
test esi, esi
jne 0x477243
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x28]
push 0x30
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00402740
movups xmm0, xmmword [str.mars_boost::filesystem::create_directory]
mov dword [ebp - 0x18], 0x28
mov dword [ebp - 0x14], 0x2f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x5c23e0]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x5c23f0]
movq qword [eax + 0x20], xmm0
mov byte [eax + 0x28], 0
mov dword [ebp - 0x28], eax
call fcn.004732d0
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x28]
push edi
push eax
lea ecx, [ebp - 0x8c]
call fcn.00476b70
push eax
mov byte [ebp - 4], 7
call fcn.00472640
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.00476cc0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x477253
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x477237
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4772be
push edx
push ecx
call fcn.004ce3c6
add esp, 8
jmp 0x477253
call fcn.004732d0
mov ecx, dword [ebp - 0x9c]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov byte [ebp - 0x8d], 0
lea ecx, [ebp - 0x58]
call fcn.00402360
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x477298
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47728e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4772c3
push edx
push ecx
call fcn.004ce3c6
add esp, 8
mov al, byte [ebp - 0x8d]
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.004cdf5d
mov esp, ebp
pop ebp
ret
call fcn.004d8605
call fcn.004d8605
call fcn.004d8605
int3