Function at 0x4ed7d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004ecbf0
cmp byte [esp + 0x20], 0
je 0x4eda0d
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004ca020
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004c9d30
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
call fcn.0047fb70
mov ecx, dword [esp + 0x20]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ed831
mov eax, dword [esp + 0x20]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4ed84b
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
push ebp
push edi
push 1
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
or ebp, 0xffffffff
mov dword [esp + 0x30], 0x5aff5c
call fcn.00481380
test al, al
je 0x4ed8d0
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [eax + 8], esi
jle 0x4ed8d0
jmp 0x4ed880
mov edx, dword [eax + 0xc]
mov di, word [edx + esi*2]
lea eax, [esp + 0x28]
push eax
call fcn.004c9ad0
add esp, 4
cmp di, word [eax]
jne 0x4ed8a5
mov eax, dword [esp + 0x14]
inc esi
cmp esi, dword [eax + 8]
jl 0x4ed880
jmp 0x4ed8d0
mov ebp, esi
cmp esi, 0xffffffff
je 0x4ed8d0
lea ecx, [esp + 0x28]
push ecx
call fcn.004c9ad0
movzx edx, word [eax]
add esp, 4
push 1
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.004811a0
mov ebp, eax
jmp 0x4ed8d0
lea eax, [esp + 0x12]
push eax
call fcn.004c9ad0
movzx edx, word [eax]
add esp, 4
push 1
lea ecx, [ebp + 1]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.004811a0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ed906
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
cmp ebp, edi
je 0x4ed9ab
test edi, edi
je 0x4ed9a0
push edi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00481220
lea edx, [esp + 0x18]
push edx
lea esi, [esp + 0x2c]
mov byte [esp + 0x2c], 0
call fcn.004ed690
add esp, 4
test al, al
jne 0x4ed986
cmp byte [esp + 0x28], al
jne 0x4ed9cf
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004ea500
add esp, 8
mov ecx, eax
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 0x1c]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ed982
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047fb60
add esp, 4
test bl, bl
je 0x4ed9cf
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ed9a0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047fb60
add esp, 4
mov ebp, edi
cmp edi, 0xffffffff
jne 0x4ed8d0
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ed9c5
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047fb60
add esp, 4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4ed9e9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047fb60
add esp, 4
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4eda03
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047fb60
add esp, 4
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004ecbf0
call fcn.004ed640
mov bl, al
mov eax, dword [esp + 0x20]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4eda3a
mov edx, dword [esp + 0x20]
push edx
call fcn.0047fb60
add esp, 4
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4eda54
mov edx, dword [esp + 0xc]
push edx
call fcn.0047fb60
add esp, 4
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret