Function at 0x504b78
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6b3787
call fcn.00664608
sub esp, 0x30
cmp byte [0x7b6c7d], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x504bfe
lea eax, [ebp + 0x48]
push eax
call fcn.00484324
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x504bac
mov eax, dword [eax]
push eax
call fcn.004526de
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
mov bl, al
call fcn.00427afc
test bl, bl
jne 0x504c14
lea eax, [ebp + 0x48]
push eax
call fcn.00484324
cmp dword [eax + 0x14], 8
jb 0x504bd5
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.00427afc
test esi, esi
jne 0x504c16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x504c16
test eax, eax
je 0x504c16
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.0046bca7
cmp byte [ebp + 0x70], 0
mov eax, dword [0x7b6dc4]
mov ecx, dword [0x7b6dc0]
mov dword [ebp - 4], 1
jne 0x504c51
cmp byte [ebp + 0x74], 0
jne 0x504c51
cmp eax, dword [edi + 0x2c]
jg 0x504c51
jl 0x504c49
cmp ecx, dword [edi + 0x28]
jae 0x504c51
push 2
pop esi
jmp 0x504df7
add ecx, 0x258
mov dword [edi + 0x28], ecx
lea ecx, [ebp + 0x18]
adc eax, ebx
mov dword [edi + 0x2c], eax
call fcn.00429772
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.0053b001
mov byte [ebp + 0x67], bl
call fcn.0046bce8
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.00427ba3
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005044f0
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x504cec
mov ecx, dword [ebp + 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x504ce3
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
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.00504b15
test eax, eax
jne 0x504d0f
mov bl, 1
mov byte [ebp + 0x67], 1
call fcn.0046bca7
mov eax, dword [0x7bb224]
mov edi, 0x6ce098
mov esi, dword [eax]
mov dword [ebp + 0x74], esi
cmp esi, eax
je 0x504dcc
lea ecx, [ebp + 0x30]
call fcn.00429772
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.004577f2
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.005044f0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.00427afc
push dword [ebp + 0x70]
lea eax, [ebp + 0x30]
mov ecx, esi
push eax
call fcn.004a9746
lea eax, [ebp]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.00504b15
test eax, eax
jne 0x504d92
mov bl, 1
lea ecx, [ebp + 0x30]
call fcn.004504d5
lea ecx, [ebp]
call fcn.00427afc
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x30], edi
call fcn.0044f20c
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 6
call fcn.0043c64d
mov esi, dword [ebp + 0x74]
cmp esi, dword [0x7bb224]
jne 0x504d2f
xor eax, eax
lea ecx, [ebp - 0x24]
test bl, bl
sete al
mov dword [ebp + 0x74], eax
call fcn.00427afc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x18], edi
call fcn.0044f20c
mov esi, dword [ebp + 0x74]
mov dword [ebp + 0x18], 0x6ce08c
mov dword [ebp - 4], 0xd
call fcn.0046bce8
mov eax, esi
jmp 0x504c00