Function at 0x4bc360
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x574a33
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x54], edi
call fcn.00518333
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4bc3af
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x198], ebx
call fcn.00518333
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4bc3e0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea esi, [edi + 4]
push esi
mov byte [esp + 0x19c], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x1a4], ebx
mov dword [esp + 0x24], ebx
jle 0x4bc918
mov ebp, dword [esp + 0x1a0]
lea esi, [ebp + 0xc]
jmp 0x4bc43b
mov ebp, dword [esp + 0x1a0]
mov edi, dword [esp + 0x54]
cmp dword [esi - 0xc], 2
jne 0x4bc4a0
mov edx, dword [edi + 0x1b8]
cmp edx, dword [ebp + 0x10]
lea ecx, [edi + 0x100]
mov dword [esp + 0x18], ecx
je 0x4bc494
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi - 4]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push str._04d__02d__02d_
push eax
call fcn.004020e0
add esp, 0x14
push 0xc
push str.alarmlog.xml
lea ecx, [esp + 0x1c]
call fcn.0040ce30
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x1b8], ecx
mov dword [esp + 0x20], 1
mov dword [edi + 0x1c8], 1
jmp 0x4bc4fa
mov eax, dword [edi + 0x1bc]
cmp eax, dword [ebp + 0x10]
lea edx, [edi + 0x48]
mov dword [esp + 0x18], edx
je 0x4bc4f0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [esi - 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._04d__02d__02d_
push ecx
call fcn.004020e0
add esp, 0x14
push 0xa
push str.oprlog.xml
lea ecx, [esp + 0x1c]
call fcn.0040ce30
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x1bc], edx
mov dword [esp + 0x20], 1
mov dword [edi + 0x1cc], 1
cmp dword [esp + 0x20], ebx
je 0x4bc6bb
push 0x584cec
add edi, 0x1c
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.00402100
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x1b0], 2
call fcn.004065f0
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 3
call fcn.00402060
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x198], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc56c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x198], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
call fcn.004ba110
xor edi, edi
cmp edi, ebx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp - 0xc]
jl 0x4bc604
cmp edi, eax
jge 0x4bc604
push 0x5c
add edi, ebp
push edi
call fcn.005307a2
add esp, 8
cmp eax, ebx
je 0x4bc604
sub eax, ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x4bc604
push edi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00423e70
mov ebp, dword [esp + 0x38]
push ebx
push ebp
add edi, 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bc59f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4bc59f
mov eax, ebp
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4bc622
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0xb8]
call fcn.004066b0
mov ebp, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xb8]
lea edi, [ebp + 0x1c]
push ecx
mov ecx, edi
mov byte [esp + 0x1a4], 4
call fcn.00406510
cmp dword [esp + 0xc8], 0x10
mov byte [esp + 0x198], 1
jb 0x4bc67e
mov edx, dword [esp + 0xb4]
push edx
call fcn.0050fd2d
add esp, 4
cmp dword [edi + 0x18], 0x10
jb 0x4bc689
mov edi, dword [edi + 4]
jmp 0x4bc68c
add edi, 4
push SysReAllocStringLen
push edi
mov ecx, ebp
call fcn.004b5ae0
lea eax, [esp + 0x110]
push eax
mov ecx, ebp
call fcn.004b5aa0
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4bc6b4
cmp dword [eax + 0x10], ebx
jne 0x4bc6bb
mov ecx, ebp
call fcn.004b6160
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004ba5e0
mov ecx, dword [eax + 4]
mov edx, vtable.pug::xml_node.0
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xcc], 0x5909c0
sub esp, 0x40
mov eax, esp
mov byte [esp + 0x1d8], 5
mov dword [esp + 0x150], edx
mov dword [esp + 0x68], esp
mov dword [eax], edx
mov dword [eax + 4], ecx
call fcn.004bb2d0
add esp, 0x40
cmp al, bl
je 0x4bc91f
lea ecx, [esi + 0xa4]
mov ebp, 0xf
mov eax, ecx
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
lea edi, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4bc740
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.004066b0
lea ecx, [esi + 0x58]
mov eax, ecx
mov byte [esp + 0x198], 6
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
lea edi, [eax + 1]
jmp 0x4bc780
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4bc780
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x80]
call fcn.004066b0
lea ecx, [esi + 0x18]
mov eax, ecx
mov byte [esp + 0x198], 7
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4bc7b5
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.004066b0
movzx edx, word [esi - 8]
movzx eax, word [esi + 0xa0]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi - 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x100]
mov byte [esp + 0x1cc], 8
call fcn.004bb410
mov edi, 0x10
cmp dword [esp + 0x74], edi
mov dword [esp + method.pug::xml_node.virtual_0], vtable.pug::xml_node.0
jb 0x4bc88c
mov eax, dword [esp + 0x60]
push eax
call fcn.0050fd2d
add esp, 4
cmp dword [esp + 0x90], edi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x4bc8ae
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0050fd2d
add esp, 4
cmp dword [esp + 0xac], edi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x4bc8d9
mov edx, dword [esp + 0x98]
push edx
call fcn.0050fd2d
add esp, 4
mov eax, dword [esp + 0x24]
add eax, 1
add esi, 0x2b0
cmp eax, dword [esp + 0x1a4]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
mov byte [esp + 0x198], 1
mov dword [esp + 0x24], eax
jl 0x4bc430
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x198], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc946
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x198], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc96d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret 8