Function at 0x504a14
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x679a21
call fcn.0062921c
sub esp, 0x30
cmp byte [0x76d5f1], 0
push edi
mov edi, ecx
jne 0x504a38
xor eax, eax
jmp 0x504c5e
lea eax, [ebp + 0x18]
push eax
call fcn.004895e8
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x504a4d
mov eax, dword [eax]
push ebx
push esi
push eax
call fcn.0045c3b4
mov bl, al
lea ecx, [ebp + 0x18]
neg bl
push 0
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 1
call fcn.0042386b
add bl, 1
je 0x504ab6
lea eax, [ebp + 0x18]
push eax
call fcn.004895e8
cmp dword [eax + 0x14], 8
jb 0x504a81
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.0042386b
test esi, esi
jne 0x504ab9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x504ab9
test eax, eax
je 0x504ab9
xor eax, eax
jmp 0x504c5c
xor ebx, ebx
inc ebx
mov byte [ebp + 0x5f], bl
call fcn.00472fb7
cmp byte [ebp + 0x68], 0
mov eax, dword [0x76d734]
mov ecx, dword [0x76d730]
mov dword [ebp - 4], ebx
jne 0x504aef
cmp byte [ebp + 0x6c], 0
jne 0x504aef
cmp eax, dword [edi + 0x28]
jg 0x504aef
jl 0x504ae7
cmp ecx, dword [edi + 0x24]
jae 0x504aef
push 2
pop ebx
jmp 0x504c4e
add ecx, 0x258
mov dword [edi + 0x24], ecx
lea ecx, [ebp + 0x30]
adc eax, 0
mov dword [edi + 0x28], eax
call fcn.00425163
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
call fcn.00539054
mov byte [ebp + 0x5f], 0
call fcn.00472ff8
push str.global_resume.dat
lea ecx, [ebp + 0x18]
call fcn.00424ff1
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00504379
push 0
push ebx
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 6
call fcn.0042386b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.005049ab
mov byte [ebp + 0x6f], 0
test eax, eax
jne 0x504b61
mov byte [ebp + 0x6f], bl
mov byte [ebp + 0x5f], bl
call fcn.00472fb7
mov eax, dword [0x771a94]
mov edi, 0x699c10
mov esi, dword [eax]
mov dword [ebp + 0x58], esi
cmp esi, eax
je 0x504c24
lea ecx, [ebp + 0x44]
call fcn.00425163
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.004607f4
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.00504379
push 0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0042386b
push dword [ebp + 0x68]
lea eax, [ebp + 0x44]
mov ecx, esi
push eax
call fcn.004ac87f
lea eax, [ebp]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.005049ab
test eax, eax
jne 0x504be7
mov byte [ebp + 0x6f], bl
lea ecx, [ebp + 0x44]
call fcn.0045a53e
push 0
push ebx
lea ecx, [ebp]
call fcn.0042386b
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x44], edi
call fcn.0045932d
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 6
call fcn.00497d99
mov esi, dword [ebp + 0x58]
cmp esi, dword [0x771a94]
jne 0x504b80
xor ebx, ebx
lea ecx, [ebp - 0x24]
cmp byte [ebp + 0x6f], bl
push 0
push 1
sete bl
call fcn.0042386b
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x30], edi
call fcn.0045932d
mov dword [ebp + 0x30], 0x68ea80
mov dword [ebp - 4], 0xd
call fcn.00472ff8
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