Function at 0x4b1dd0
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513b3f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x566040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x13c], edi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x571874], edi
jne 0x4b1f7f
lea eax, [ebp - 0x74]
mov dword [ebp - 0x50], edi
xorps xmm0, xmm0
mov dword [ebp - 0x70], edi
push eax
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x6c], edi
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x74], 2
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x144], eax
call fcn.004d5ce7
add esp, 4
test eax, eax
jne 0x4b2350
mov eax, dword [ebp - 0x48]
cmp eax, 0x7fffffff
je 0x4b2357
mov dword [ebp - 4], edi
call fcn.004341c0
lea ecx, [ebp - 0xbc]
lea edx, [eax + 0x34]
call fcn.00416570
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.004174b0
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.00417ad0
mov edi, eax
mov edx, edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00417940
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x13c], 0x20
jbe 0x4b1ef7
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x4b1edf
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
mov edx, 0x5c
cmp dx, word [ecx + eax*2 - 2]
je 0x4b1ef7
push edx
lea ecx, [ebp - 0x2c]
call fcn.00416770
push dword [ebp - 0x140]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x144]
lea ecx, [ebp - 0x44]
call fcn.0041bc40
lea ecx, [ebp - 0x2c]
mov edi, 0x10
call fcn.00415000
lea ecx, [ebp - 0xa4]
call fcn.00415000
lea ecx, [ebp - 0x8c]
call fcn.00415000
lea ecx, [ebp - 0xbc]
call fcn.00415000
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x44]
mov dword [0x571874], eax
call fcn.00415000
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004d5cf8
add esp, 4
cmp dword [0x571874], 0
jne 0x4b1f7f
push 0x5414e0
call esi
call fcn.004adda0
test al, al
jne 0x4b1f8f
push 0x541430
call esi
lea ecx, [ebp - 0x44]
call fcn.004174b0
mov edx, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00417ad0
push 3
push 0x541454
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00416c00
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
or edi, 1
push ecx
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b2024
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x135], 1
cmp eax, 0xb7
jne 0x4b202b
mov byte [ebp - 0x135], 0
lea ecx, [ebp - 0x2c]
call fcn.00415000
lea ecx, [ebp - 0xbc]
call fcn.00415000
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00415000
cmp byte [ebp - 0x135], 0
je 0x4b205d
push 0x541598
call esi
call fcn.004341c0
lea ecx, [ebp - 0x5c]
lea edx, [eax + 0x7c]
call fcn.00416570
mov esi, eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 7
call fcn.004174b0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.00417ad0
push 4
push str.log_
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00416c00
xor ecx, ecx
or edi, 2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push esi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xa
push eax
push dword [ebp - 0x144]
lea ecx, [ebp - 0xd4]
call fcn.0041bc40
or edi, 4
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x30]
cmp ecx, 7
jbe 0x4b2126
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4b211c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2362
push ecx
push edx
call fcn.004d37a1
add esp, 8
lea ecx, [ebp - 0xbc]
call fcn.00415000
lea ecx, [ebp - 0xec]
call fcn.00415000
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.00415000
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0x2c]
call fcn.00416130
or edi, 8
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
mov byte [ebp - 4], 0x10
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova edi, dword [ebp - 0x2c]
call fcn.004f01a3
mov esi, dword [eax]
call fcn.004f019d
push 0x6400000
push edi
push esi
push dword [eax]
call dword [0x57151c]
mov byte [ebp - 4], 0xf
add esp, 0x10
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4b21ca
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b21c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b2367
push ecx
push edx
call fcn.004d37a1
add esp, 8
push 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call dword [0x571514]
add esp, 4
push 1
call dword [0x571518]
mov ecx, dword [0x571878]
add esp, 4
test ecx, ecx
jne 0x4b2311
call fcn.004341c0
lea ecx, [ebp - 0x134]
lea edx, [eax + 4]
call fcn.00416570
mov edi, eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x11
call fcn.004174b0
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x104]
call fcn.00417ad0
mov esi, eax
mov edx, esi
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x8c]
call fcn.00417940
mov ecx, dword [ebp - 0x140]
or ecx, 0x40
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x13c], ecx
jbe 0x4b2282
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x4b2267
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov edx, 0x5c
cmp dx, word [ecx + eax*2 - 2]
je 0x4b2282
push edx
lea ecx, [ebp - 0x8c]
call fcn.00416770
push edi
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x144]
lea ecx, [ebp - 0xa4]
call fcn.0041bc40
lea ecx, [ebp - 0x8c]
call fcn.00415000
lea ecx, [ebp - 0x104]
call fcn.00415000
lea ecx, [ebp - 0x11c]
call fcn.00415000
lea ecx, [ebp - 0x134]
call fcn.00415000
cmp dword [ebp - 0x90], 7
lea eax, [ebp - 0xa4]
cmova eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0xa4]
mov dword [0x571878], eax
call fcn.00415000
mov ecx, dword [0x571878]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ecx, ecx
jne 0x4b2317
push 0x54154c
call esi
mov ecx, dword [0x571878]
jmp 0x4b2317
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004a9bb0
test al, al
jne 0x4b2327
push 0x541570
call esi
lea ecx, [ebp - 0xd4]
call fcn.00415000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d378e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 5
call fcn.004d5c89
dec eax
push 6
mov dword [ebp - 0x48], eax
call fcn.004d5c89
call fcn.004e2f6c
call fcn.004e2f6c
int3