Function at 0x4e3cb8
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x519978]
push ebx
mov ebx, dword [0x518ddc]
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edx
push 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x4e3d1b
call fcn.004c73cc
mov esi, eax
push esi
push 0xb6d0197
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4e3e11
xor edx, edx
push 0x11
inc edx
pop ecx
call fcn.004e6904
mov esi, eax
test esi, esi
je 0x4e3d40
push esi
push 0xb720197
call dword [sym.imp.certcli.dll_Ordinal_357]
xor edi, edi
inc edi
jmp 0x4e3e11
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e3d49
mov dword [eax], edi
mov ecx, dword [esp + 0x14]
jmp 0x4e3da4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
call fcn.004eb5a9
mov esi, eax
cmp esi, 0x80070002
jne 0x4e3e55
cmp dword [esp + 0x18], edi
jne 0x4e3e59
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [esp + 0x10], edi
call fcn.004cb395
mov esi, eax
test esi, esi
jne 0x4e3e41
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
call fcn.004cb226
mov esi, eax
test esi, esi
je 0x4e3d4f
push esi
push 0xb7c0197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov eax, dword [esp + 0x10]
xor edi, edi
inc edi
test eax, eax
je 0x4e3dd1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e3de0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e3def
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4e3e00
push 2
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e3e11
push 2
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [esp + 0x3c], 0
je 0x4e3e22
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4e3e36
push 0x11
xor edx, edx
pop ecx
call fcn.004e6904
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push esi
push 0xb870197
call dword [sym.imp.certcli.dll_Ordinal_357]
xor edi, edi
inc edi
jmp 0x4e3dd1
test esi, esi
je 0x4e3e64
push esi
push 0xb8c0197
jmp 0x4e3db9
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.004e1f43
test eax, eax
jne 0x4e3e9d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4e3e9d
call fcn.004c73cc
mov esi, eax
cmp esi, 0x800700b7
je 0x4e3e99
push esi
push 0xb9f0197
jmp 0x4e3db9
mov esi, dword [esp + 0x24]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4e3ea2
sub ecx, edx
mov edx, dword [esp + 0x10]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x4e3eb8
sub edx, esi
lea eax, [ecx + 6]
sar edx, 1
add eax, edx
mov dword [esp + 0x14], eax
add eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4e3ef4
mov esi, 0x8007000e
push esi
push 0xba90197
jmp 0x4e3db9
push dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.0043eb7d
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0x4050fc
call fcn.0043eadb
push dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.0043eadb
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0x4057e8
call fcn.0043eadb
push 0x40c100
push 0x2c200
push edi
push 1
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
jne 0x4e3f63
call fcn.004c73cc
mov esi, eax
push esi
push 0xbbe0197
jmp 0x4e3db9
push edi
push 0x200
push edi
push 1
push 2
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x4e3f90
call fcn.004c73cc
mov esi, eax
push esi
push 0xbca0197
jmp 0x4e3db9
mov eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
cmp dword [esp + 0x2c], eax
jbe 0x4e4093
push dword [esp + 0x30]
mov edx, eax
push ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.004e3bad
mov esi, eax
test esi, esi
je 0x4e3fd2
push esi
push 0xbd60197
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp esi, 1
jne 0x4e3ff4
mov ecx, dword [esp + 0x24]
jmp 0x4e3fdb
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jae 0x4e3fff
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
jmp 0x4e3fa4
push esi
push 0xbd90197
jmp 0x4e3db9
test ecx, ecx
je 0x4e4093
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x38]
mov eax, ecx
mov dword [esp + 0x34], ecx
neg eax
sbb eax, eax
and eax, 0x20
add eax, 6
neg ecx
push eax
push dword [ebp + 0x10]
sbb ecx, ecx
lea eax, [esp + 0x3c]
and ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
push edi
push dword [ebp + 8]
call fcn.004e3901
mov esi, eax
test esi, esi
je 0x4e404b
push esi
push 0xbf40197
jmp 0x4e3db9
neg ebx
sbb ebx, ebx
and ebx, 0x100
add ebx, 2
push ebx
push dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
push dword [esp + 0x44]
push ebx
call dword [sym.imp.certcli.dll_Ordinal_225]
mov esi, eax
test esi, esi
je 0x4e407d
push esi
push 0xbfb0197
jmp 0x4e3db9
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4e3dbf
mov dword [eax], ebx
mov dword [esp + 0x1c], edi
jmp 0x4e3dbf
mov esi, 0x80092004
push esi
push 0xbe10197
jmp 0x4e3db9