Function at 0x5115af
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x6aadcb
call fcn.006426c4
sub esp, 0x30
cmp byte [0x7b14cd], 0
push edi
mov edi, ecx
jne 0x5115d3
xor eax, eax
jmp 0x5117f9
lea eax, [ebp + 0x18]
push eax
call fcn.0048fdd4
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x5115e8
mov eax, dword [eax]
push ebx
push esi
push eax
call fcn.00461879
mov bl, al
lea ecx, [ebp + 0x18]
neg bl
push 0
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 1
call fcn.004285f6
add bl, 1
je 0x511651
lea eax, [ebp + 0x18]
push eax
call fcn.0048fdd4
cmp dword [eax + 0x14], 8
jb 0x51161c
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor ebx, ebx
lea ecx, [ebp + 0x18]
push 0
inc ebx
mov esi, eax
push ebx
call fcn.004285f6
test esi, esi
jne 0x511654
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x511654
test eax, eax
je 0x511654
xor eax, eax
jmp 0x5117f7
xor ebx, ebx
inc ebx
mov byte [ebp + 0x5f], bl
call fcn.00479151
cmp byte [ebp + 0x68], 0
mov eax, dword [0x7b4654]
mov ecx, dword [0x7b4650]
mov dword [ebp - 4], ebx
jne 0x51168a
cmp byte [ebp + 0x6c], 0
jne 0x51168a
cmp eax, dword [edi + 0x28]
jg 0x51168a
jl 0x511682
cmp ecx, dword [edi + 0x24]
jae 0x51168a
push 2
pop ebx
jmp 0x5117e9
add ecx, 0x258
mov dword [edi + 0x24], ecx
lea ecx, [ebp + 0x30]
adc eax, 0
mov dword [edi + 0x28], eax
call fcn.00429ee9
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
call fcn.0054a77f
mov byte [ebp + 0x5f], 0
call fcn.00479192
push str.global_resume.dat
lea ecx, [ebp + 0x18]
call fcn.00429d77
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00510f14
push 0
push ebx
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 6
call fcn.004285f6
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00511546
mov byte [ebp + 0x6f], 0
test eax, eax
jne 0x5116fc
mov byte [ebp + 0x6f], bl
mov byte [ebp + 0x5f], bl
call fcn.00479151
mov eax, dword [0x7b5aa0]
mov edi, 0x6c40a0
mov esi, dword [eax]
mov dword [ebp + 0x58], esi
cmp esi, eax
je 0x5117bf
lea ecx, [ebp + 0x44]
call fcn.00429ee9
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.00465d7f
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.00510f14
push 0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004285f6
push dword [ebp + 0x68]
lea eax, [ebp + 0x44]
mov ecx, esi
push eax
call fcn.004b4bcb
lea eax, [ebp]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.00511546
test eax, eax
jne 0x511782
mov byte [ebp + 0x6f], bl
lea ecx, [ebp + 0x44]
call fcn.0045f5f5
push 0
push ebx
lea ecx, [ebp]
call fcn.004285f6
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x44], edi
call fcn.0045e3e4
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 6
call fcn.005ad870
mov esi, dword [ebp + 0x58]
cmp esi, dword [0x7b5aa0]
jne 0x51171b
xor ebx, ebx
lea ecx, [ebp - 0x24]
cmp byte [ebp + 0x6f], bl
push 0
push 1
sete bl
call fcn.004285f6
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x30], edi
call fcn.0045e3e4
mov dword [ebp + 0x30], 0x6c4094
mov dword [ebp - 4], 0xd
call fcn.00479192
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
lea esp, [ebp + 0x60]
pop ebp
ret 8