Function at 0x4929d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531d91
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov ecx, 0x58c214
call edx
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 1
call fcn.004b45f0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
add esp, 4
or eax, ecx
jge 0x492a54
push 0x104
mov ecx, esi
call fcn.004018b0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
push 0x104
push eax
push str.ReportDir
push ecx
call fcn.004b4490
add esp, 0x10
test eax, eax
jne 0x492a7b
push esi
mov ecx, edi
call fcn.00492520
jmp 0x492ab9
mov edx, dword [esi]
cmp edx, ebx
jne 0x492a85
xor eax, eax
jmp 0x492aa5
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x492a90
sub eax, edi
sar eax, 1
js 0x492baf
cmp eax, dword [edx - 8]
jg 0x492baf
mov dword [edx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x492b01
lea ebx, [ebx]
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x492baf
cmp eax, ecx
jg 0x492baf
cmp word [edx + eax*2], 0x5c
jne 0x492b01
dec ecx
push 1
push ecx
mov ecx, esi
call fcn.0046a1a0
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebx
jne 0x492ad0
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov edi, esp
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 0x20], edi
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [ebp - 4], 3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
call fcn.004925b0
cmp al, bl
jne 0x492bb9
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x492b4a
mov edx, dword [eax - 0xc]
push edx
mov ecx, esi
call fcn.00401820
mov eax, dword [esi]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x492bb9
cmp eax, 0xb7
je 0x492bb9
cmp eax, 0x50
je 0x492bb9
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x20]
push str.Failed_to_create_directory__s
push ecx
call fcn.004121f0
add esp, 0xc
mov dword [ebp - 4], 4
mov esi, dword [eax]
call fcn.004f4abd
mov eax, dword [eax]
cmp eax, ebx
jle 0x492b97
and eax, 0xffff
or eax, 0x80070000
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00412090
push 0x569810
lea edx, [ebp - 0x30]
push edx
call fcn.004f08d9
push 0x80070057
call fcn.004013f0
movzx eax, word [ebp + 0x18]
movzx ecx, word [ebp + 0x16]
movzx edx, word [ebp + 0x14]
push eax
movzx eax, word [ebp + 0x12]
push ecx
movzx ecx, word [ebp + 0xe]
push edx
movzx edx, word [ebp + 0xc]
push eax
push ecx
push edx
push str._d__d__d___d__d__d_
push esi
call fcn.00402550
mov eax, dword [esi]
push eax
call fcn.004f6cb7
add esp, 0x24
test eax, eax
je 0x492c3b
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x20]
push str.Failed_to_create_directory__s
push ecx
call fcn.004121f0
add esp, 0xc
mov dword [ebp - 4], 5
mov esi, dword [eax]
call fcn.004f4abd
mov eax, dword [eax]
cmp eax, ebx
jle 0x492c23
and eax, 0xffff
or eax, 0x80070000
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00412090
push 0x569810
lea edx, [ebp - 0x30]
push edx
call fcn.004f08d9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14