Function at 0x50dfba
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x6b74ab
call fcn.00651da4
sub esp, 0x30
cmp byte [0x7c2895], 0
push edi
mov edi, ecx
jne 0x50dfde
xor eax, eax
jmp 0x50e204
lea eax, [ebp + 0x18]
push eax
call fcn.0048c52f
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x50dff3
mov eax, dword [eax]
push ebx
push esi
push eax
call fcn.0045d443
mov bl, al
lea ecx, [ebp + 0x18]
neg bl
push 0
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 1
call fcn.004284eb
add bl, 1
je 0x50e05c
lea eax, [ebp + 0x18]
push eax
call fcn.0048c52f
cmp dword [eax + 0x14], 8
jb 0x50e027
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.004284eb
test esi, esi
jne 0x50e05f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x50e05f
test eax, eax
je 0x50e05f
xor eax, eax
jmp 0x50e202
xor ebx, ebx
inc ebx
mov byte [ebp + 0x5f], bl
call fcn.00475363
cmp byte [ebp + 0x68], 0
mov eax, dword [0x7c5a14]
mov ecx, dword [0x7c5a10]
mov dword [ebp - 4], ebx
jne 0x50e095
cmp byte [ebp + 0x6c], 0
jne 0x50e095
cmp eax, dword [edi + 0x28]
jg 0x50e095
jl 0x50e08d
cmp ecx, dword [edi + 0x24]
jae 0x50e095
push 2
pop ebx
jmp 0x50e1f4
add ecx, 0x258
mov dword [edi + 0x24], ecx
lea ecx, [ebp + 0x30]
adc eax, 0
mov dword [edi + 0x28], eax
call fcn.00429d3a
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
call fcn.00546cb4
mov byte [ebp + 0x5f], 0
call fcn.004753a4
push str.global_resume.dat
lea ecx, [ebp + 0x18]
call fcn.00428153
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0050d91f
push 0
push ebx
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 6
call fcn.004284eb
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0050df51
mov byte [ebp + 0x6f], 0
test eax, eax
jne 0x50e107
mov byte [ebp + 0x6f], bl
mov byte [ebp + 0x5f], bl
call fcn.00475363
mov eax, dword [0x7c6e6c]
mov edi, 0x6d2030
mov esi, dword [eax]
mov dword [ebp + 0x58], esi
cmp esi, eax
je 0x50e1ca
lea ecx, [ebp + 0x44]
call fcn.00429d3a
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.00462014
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.0050d91f
push 0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004284eb
push dword [ebp + 0x68]
lea eax, [ebp + 0x44]
mov ecx, esi
push eax
call fcn.004b0c6e
lea eax, [ebp]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0050df51
test eax, eax
jne 0x50e18d
mov byte [ebp + 0x6f], bl
lea ecx, [ebp + 0x44]
call fcn.0045b5c3
push 0
push ebx
lea ecx, [ebp]
call fcn.004284eb
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x44], edi
call fcn.0045a3b2
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 6
call fcn.0043c2d7
mov esi, dword [ebp + 0x58]
cmp esi, dword [0x7c6e6c]
jne 0x50e126
xor ebx, ebx
lea ecx, [ebp - 0x24]
cmp byte [ebp + 0x6f], bl
push 0
push 1
sete bl
call fcn.004284eb
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x30], edi
call fcn.0045a3b2
mov dword [ebp + 0x30], 0x6d2024
mov dword [ebp - 4], 0xd
call fcn.004753a4
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