Function at 0x502200
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cc48
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x5a5014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
jne 0x50225a
test esi, esi
je 0x5024bc
mov dword [esi], 0x16
xor al, al
mov byte [esi + 4], 1
mov dword [esi + 8], 0x57d968
jmp 0x5024a0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00500670
cmp dword [ebp - 0x18], 1
jne 0x502280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x2e
jne 0x502280
mov bl, 1
jmp 0x502282
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.00455260
test bl, bl
jne 0x502478
mov eax, dword [edi + 0x10]
cmp eax, 2
jb 0x5022f1
mov ecx, dword [edi + 0x14]
mov edx, edi
cmp ecx, 8
jb 0x5022a6
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x2e
jne 0x5022f1
mov edx, edi
cmp ecx, 8
jb 0x5022b7
mov edx, dword [edi]
cmp word [edx + eax*2 - 4], 0x2e
jne 0x5022f1
cmp eax, 2
je 0x502478
mov edx, edi
cmp ecx, 8
jb 0x5022d1
mov edx, dword [edi]
movzx eax, word [edx + eax*2 - 6]
cmp eax, 0x2f
je 0x502478
cmp eax, 0x5c
je 0x502478
cmp eax, 0x3a
je 0x502478
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
lea eax, [ebp - 0xf4]
mov byte [ebp - 0xe8], 0
push edi
push eax
mov dword [ebp - 0xe4], 0x57d978
call fcn.00502c80
add esp, 0xc
cmp dword [ebp - 0xf4], 3
jne 0x502348
test esi, esi
je 0x502341
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x57d978
xor al, al
jmp 0x5024a0
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00501160
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 2
je 0x5023d3
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00502c80
add esp, 0xc
cmp dword [ebp - 0xf4], 1
jne 0x5023d3
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00502200
add esp, 8
mov byte [ebp - 4], 2
cmp byte [ebp - 0xe8], 0
je 0x5023d3
test esi, esi
je 0x50250d
movq xmm0, qword [ebp - 0xec]
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xe4]
movq qword [esi], xmm0
mov dword [esi + 8], eax
call fcn.00455260
xor al, al
jmp 0x5024a0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x5023dd
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x502409
test esi, esi
je 0x5023ff
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x57d978
mov bl, 1
lea ecx, [ebp - 0x40]
jmp 0x502499
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x18], 0
push eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x14], 0x57d978
push edi
push eax
call fcn.00502c80
add esp, 0xc
cmp dword [ebp - 0xf4], 3
jne 0x50245c
test esi, esi
je 0x502471
mov dword [esi], 0
lea ecx, [ebp - 0x40]
mov byte [esi + 4], 0
xor bl, bl
mov dword [esi + 8], 0x57d978
jmp 0x502499
test esi, esi
je 0x50255c
push 0x57d978
push ebx
mov ecx, esi
call fcn.005021a0
xor bl, bl
lea ecx, [ebp - 0x40]
jmp 0x502499
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00501160
push esi
push eax
mov dword [ebp - 4], 1
call fcn.00502200
add esp, 8
lea ecx, [ebp - 0x58]
mov bl, al
call fcn.00455260
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1084
mov esp, ebp
pop ebp
ret
push str.boost::filesystem::create_directories
lea ecx, [ebp - 0x58]
call fcn.00455e60
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push 0x16
push eax
call fcn.00502a30
push ecx
mov ecx, esp
push edi
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xa8]
call fcn.004f48e0
push 0x59f070
lea eax, [ebp - 0xa8]
push eax
call fcn.00508254
push str.boost::filesystem::create_directories
lea ecx, [ebp - 0x58]
call fcn.00455e60
movq xmm0, qword [ebp - 0xec]
sub esp, 0xc
mov eax, dword [ebp - 0xe4]
mov ecx, esp
mov byte [ebp - 4], 4
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xa8]
call fcn.004f48e0
push 0x59f070
lea eax, [ebp - 0xa8]
push eax
call fcn.00508254
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x70]
call fcn.00455e60
mov byte [ebp - 4], 5
call fcn.0040b7f0
push eax
push ebx
lea ecx, [ebp - 0x100]
call fcn.0040b870
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [ebp - 0x70]
push edi
push eax
lea ecx, [ebp - 0xe0]
call fcn.004f48e0
push 0x59f070
lea eax, [ebp - 0xe0]
push eax
call fcn.00508254
int3