Function at 0x50d6c1
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x69fa17
call fcn.006375a8
sub esp, 0x30
cmp byte [0x79ff79], 0
push edi
mov edi, ecx
jne 0x50d6e5
xor eax, eax
jmp 0x50d90b
lea eax, [ebp + 0x18]
push eax
call fcn.0048ca68
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x50d6fa
mov eax, dword [eax]
push ebx
push esi
push eax
call fcn.0045f48a
mov bl, al
lea ecx, [ebp + 0x18]
neg bl
push 0
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 1
call fcn.004267c2
add bl, 1
je 0x50d763
lea eax, [ebp + 0x18]
push eax
call fcn.0048ca68
cmp dword [eax + 0x14], 8
jb 0x50d72e
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.004267c2
test esi, esi
jne 0x50d766
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x50d766
test eax, eax
je 0x50d766
xor eax, eax
jmp 0x50d909
xor ebx, ebx
inc ebx
mov byte [ebp + 0x5f], bl
call fcn.00475cf1
cmp byte [ebp + 0x68], 0
mov eax, dword [0x7a00bc]
mov ecx, dword [0x7a00b8]
mov dword [ebp - 4], ebx
jne 0x50d79c
cmp byte [ebp + 0x6c], 0
jne 0x50d79c
cmp eax, dword [edi + 0x28]
jg 0x50d79c
jl 0x50d794
cmp ecx, dword [edi + 0x24]
jae 0x50d79c
push 2
pop ebx
jmp 0x50d8fb
add ecx, 0x258
mov dword [edi + 0x24], ecx
lea ecx, [ebp + 0x30]
adc eax, 0
mov dword [edi + 0x28], eax
call fcn.004280b5
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
call fcn.00545756
mov byte [ebp + 0x5f], 0
call fcn.00475d32
push str.global_resume.dat
lea ecx, [ebp + 0x18]
call fcn.00427f43
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0050d026
push 0
push ebx
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 6
call fcn.004267c2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0050d658
mov byte [ebp + 0x6f], 0
test eax, eax
jne 0x50d80e
mov byte [ebp + 0x6f], bl
mov byte [ebp + 0x5f], bl
call fcn.00475cf1
mov eax, dword [0x7a4510]
mov edi, 0x6b6d70
mov esi, dword [eax]
mov dword [ebp + 0x58], esi
cmp esi, eax
je 0x50d8d1
lea ecx, [ebp + 0x44]
call fcn.004280b5
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.004638e7
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.0050d026
push 0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004267c2
push dword [ebp + 0x68]
lea eax, [ebp + 0x44]
mov ecx, esi
push eax
call fcn.004b0e07
lea eax, [ebp]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0050d658
test eax, eax
jne 0x50d894
mov byte [ebp + 0x6f], bl
lea ecx, [ebp + 0x44]
call fcn.0045d59e
push 0
push ebx
lea ecx, [ebp]
call fcn.004267c2
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x44], edi
call fcn.0045c38d
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 6
call fcn.005a78a8
mov esi, dword [ebp + 0x58]
cmp esi, dword [0x7a4510]
jne 0x50d82d
xor ebx, ebx
lea ecx, [ebp - 0x24]
cmp byte [ebp + 0x6f], bl
push 0
push 1
sete bl
call fcn.004267c2
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x30], edi
call fcn.0045c38d
mov dword [ebp + 0x30], 0x6b6d64
mov dword [ebp - 4], 0xd
call fcn.00475d32
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