Function at 0x526871
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6dbe16
call fcn.006899cc
sub esp, 0x30
cmp byte [0x7e669d], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x5268f7
lea eax, [ebp + 0x48]
push eax
call fcn.004a28c4
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x5268a5
mov eax, dword [eax]
push eax
call fcn.004704dc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
mov bl, al
call fcn.0044823e
test bl, bl
jne 0x52690d
lea eax, [ebp + 0x48]
push eax
call fcn.004a28c4
cmp dword [eax + 0x14], 8
jb 0x5268ce
mov eax, dword [eax]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea ecx, [ebp + 0x48]
mov esi, eax
call fcn.0044823e
test esi, esi
jne 0x52690f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x52690f
test eax, eax
je 0x52690f
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x68
leave
ret 8
xor ebx, ebx
mov byte [ebp + 0x67], 1
call fcn.00489fdc
cmp byte [ebp + 0x70], 0
mov eax, dword [0x7e67e4]
mov ecx, dword [0x7e67e0]
mov dword [ebp - 4], 1
jne 0x52694a
cmp byte [ebp + 0x74], 0
jne 0x52694a
cmp eax, dword [edi + 0x2c]
jg 0x52694a
jl 0x526942
cmp ecx, dword [edi + 0x28]
jae 0x52694a
push 2
pop esi
jmp 0x526af0
add ecx, 0x258
mov dword [edi + 0x28], ecx
lea ecx, [ebp + 0x18]
adc eax, ebx
mov dword [edi + 0x2c], eax
call fcn.00449d20
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.0055cc46
mov byte [ebp + 0x67], bl
call fcn.0048a01d
xor eax, eax
mov dword [ebp + 0x48], ebx
push str.global_resume.dat
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.004482e2
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005261ea
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x5269e5
mov ecx, dword [ebp + 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x5269dc
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp + 0x58], ebx
mov word [ebp + 0x48], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x5c], 7
push eax
call fcn.0052680e
test eax, eax
jne 0x526a08
mov bl, 1
mov byte [ebp + 0x67], 1
call fcn.00489fdc
mov eax, dword [0x7eac50]
mov edi, 0x6f6108
mov esi, dword [eax]
mov dword [ebp + 0x74], esi
cmp esi, eax
je 0x526ac5
lea ecx, [ebp + 0x30]
call fcn.00449d20
mov esi, dword [esi + 0x24]
mov ecx, esi
mov byte [ebp - 4], 7
mov eax, dword [esi]
call dword [eax + 0x34]
push eax
lea eax, [ebp - 0x3c]
push str._H.dat
push eax
call fcn.00475719
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.005261ea
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0044823e
push dword [ebp + 0x70]
lea eax, [ebp + 0x30]
mov ecx, esi
push eax
call fcn.004c8f02
lea eax, [ebp]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0052680e
test eax, eax
jne 0x526a8b
mov bl, 1
lea ecx, [ebp + 0x30]
call fcn.0046e316
lea ecx, [ebp]
call fcn.0044823e
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x30], edi
call fcn.0046d04d
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 6
call fcn.0045c164
mov esi, dword [ebp + 0x74]
cmp esi, dword [0x7eac50]
jne 0x526a28
xor eax, eax
lea ecx, [ebp - 0x24]
test bl, bl
sete al
mov dword [ebp + 0x74], eax
call fcn.0044823e
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x18], edi
call fcn.0046d04d
mov esi, dword [ebp + 0x74]
mov dword [ebp + 0x18], 0x6f60fc
mov dword [ebp - 4], 0xd
call fcn.0048a01d
mov eax, esi
jmp 0x5268f9