Function at 0x511934
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6bd1fa
call fcn.0066bd6c
sub esp, 0x30
cmp byte [0x7c194d], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x5119ba
lea eax, [ebp + 0x48]
push eax
call fcn.0049120b
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x511968
mov eax, dword [eax]
push eax
call fcn.0045f5d9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
mov bl, al
call fcn.0042756c
test bl, bl
jne 0x5119d0
lea eax, [ebp + 0x48]
push eax
call fcn.0049120b
cmp dword [eax + 0x14], 8
jb 0x511991
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.0042756c
test esi, esi
jne 0x5119d2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x5119d2
test eax, eax
je 0x5119d2
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.00478ba6
cmp byte [ebp + 0x70], 0
mov eax, dword [0x7c1a94]
mov ecx, dword [0x7c1a90]
mov dword [ebp - 4], 1
jne 0x511a0d
cmp byte [ebp + 0x74], 0
jne 0x511a0d
cmp eax, dword [edi + 0x2c]
jg 0x511a0d
jl 0x511a05
cmp ecx, dword [edi + 0x28]
jae 0x511a0d
push 2
pop esi
jmp 0x511bb3
add ecx, 0x258
mov dword [edi + 0x28], ecx
lea ecx, [ebp + 0x18]
adc eax, ebx
mov dword [edi + 0x2c], eax
call fcn.004291e2
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.00547da3
mov byte [ebp + 0x67], bl
call fcn.00478be7
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.00427613
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005112ac
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x511aa8
mov ecx, dword [ebp + 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x511a9f
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0066bb0a
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.005118d1
test eax, eax
jne 0x511acb
mov bl, 1
mov byte [ebp + 0x67], 1
call fcn.00478ba6
mov eax, dword [0x7c5ef4]
mov edi, 0x6d7078
mov esi, dword [eax]
mov dword [ebp + 0x74], esi
cmp esi, eax
je 0x511b88
lea ecx, [ebp + 0x30]
call fcn.004291e2
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.004646d1
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.005112ac
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0042756c
push dword [ebp + 0x70]
lea eax, [ebp + 0x30]
mov ecx, esi
push eax
call fcn.004b6615
lea eax, [ebp]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.005118d1
test eax, eax
jne 0x511b4e
mov bl, 1
lea ecx, [ebp + 0x30]
call fcn.0045d3d0
lea ecx, [ebp]
call fcn.0042756c
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x30], edi
call fcn.0045c107
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 6
call fcn.0043c13c
mov esi, dword [ebp + 0x74]
cmp esi, dword [0x7c5ef4]
jne 0x511aeb
xor eax, eax
lea ecx, [ebp - 0x24]
test bl, bl
sete al
mov dword [ebp + 0x74], eax
call fcn.0042756c
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x18], edi
call fcn.0045c107
mov esi, dword [ebp + 0x74]
mov dword [ebp + 0x18], 0x6d706c
mov dword [ebp - 4], 0xd
call fcn.00478be7
mov eax, esi
jmp 0x5119bc