Function at 0x42d190
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x538340], 0
push ebx
push esi
push edi
mov dword [ebp - 0x80c], edx
mov ebx, ecx
jne 0x42d232
mov ecx, str.CACHEFOLDER
call fcn.00487da0
mov byte [0x538340], 0
test eax, eax
je 0x42d1d1
mov eax, dword [eax + 4]
jmp 0x42d1d6
mov eax, str.pic_cache
push 0x800
push eax
push 0x538340
call fcn.00495450
add esp, 0xc
mov byte [0x538b3f], 0
cmp byte [0x538340], 0
jne 0x42d232
mov ecx, str.CACHEFOLDER
call fcn.00487da0
mov byte [0x538340], 0
test eax, eax
je 0x42d213
mov eax, dword [eax + 4]
jmp 0x42d218
mov eax, str.pic_cache
push 0x800
push eax
push 0x538340
call fcn.00495450
add esp, 0xc
mov byte [0x538b3f], 0
push 0
push 0x538340
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [0x538340], 0
jne 0x42d281
mov ecx, str.CACHEFOLDER
call fcn.00487da0
mov byte [0x538340], 0
test eax, eax
je 0x42d262
mov eax, dword [eax + 4]
jmp 0x42d267
mov eax, str.pic_cache
push 0x800
push eax
push 0x538340
call fcn.00495450
add esp, 0xc
mov byte [0x538b3f], 0
xor ecx, ecx
jmp 0x42d290
mov al, byte [ecx + 0x538340]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x809], al
test al, al
jne 0x42d290
lea edi, [ebp - 0x808]
dec edi
jmp 0x42d2b0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x42d2b0
mov ax, word [0x4c3b10]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x42d2c5
lea edi, [ebp - 0x808]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42d2d5
mov ecx, ebx
mov edx, 0x4c3b14
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x808]
call fcn.00482a10
test eax, eax
jne 0x42d31f
lea ecx, [ebp - 0x808]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x42d306
mov eax, dword [str..rct]
mov dword [ecx], eax
mov al, byte [0x4c3b1c]
mov byte [ecx + 4], al
mov ebx, dword [ebp - 0x80c]
push 0
push 0x18
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
call fcn.00486160
mov edi, eax
mov ecx, dword [edi + 4]
imul ecx, dword [edi + 8]
push ecx
push 0
push dword [edi + 0x2c]
call fcn.0049cbc0
xor esi, esi
add esp, 0x14
mov dword [ebp - 0x80c], esi
cmp dword [ebx + 4], esi
jle 0x42d3b3
mov eax, dword [ebx]
lea esp, [esp]
mov ecx, dword [ebx + 8]
mov edx, dword [edi + 8]
imul ecx, esi
imul edx, esi
xor esi, esi
add ecx, dword [ebx + 0x2c]
add edx, dword [edi + 0x2c]
test eax, eax
jle 0x42d3a1
jmp 0x42d380
movzx eax, byte [ecx]
lea edx, [edx + 3]
mov byte [edx - 3], al
inc esi
movzx eax, byte [ecx + 1]
mov byte [edx - 2], al
movzx eax, byte [ecx + 2]
add ecx, 4
mov byte [edx - 1], al
mov eax, dword [ebx]
cmp esi, eax
jl 0x42d380
mov esi, dword [ebp - 0x80c]
inc esi
mov dword [ebp - 0x80c], esi
cmp esi, dword [ebx + 4]
jl 0x42d360
push ecx
mov edx, edi
lea ecx, [ebp - 0x808]
call fcn.00485250
add esp, 4
cmp dword [edi + 0xc], 0
jne 0x42d40e
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x38]
test ecx, ecx
je 0x42d3d9
mov dword [ecx + 0x38], eax
jmp 0x42d3de
mov dword [0x53c124], eax
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x42d3eb
mov eax, dword [edi + 0x34]
mov dword [ecx + 0x34], eax
call dword [sym.imp.GDI32.dll_GdiFlush]
push dword [edi + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [edi + 0x24]
call fcn.00494034
add esp, 4
push edi
call fcn.00494034
add esp, 4
cmp byte [0x538340], 0
jne 0x42d4d3
mov esi, dword [0x53c144]
test esi, esi
je 0x42d460
mov ecx, dword [esi]
mov eax, str.CACHEFOLDER
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42d450
test dl, dl
je 0x42d44c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42d450
add ecx, 2
add eax, 2
test dl, dl
jne 0x42d430
xor eax, eax
jmp 0x42d455
sbb eax, eax
or eax, 1
test eax, eax
je 0x42d462
mov esi, dword [esi + 8]
test esi, esi
jne 0x42d425
xor esi, esi
mov byte [0x538340], 0
test esi, esi
je 0x42d472
mov eax, dword [esi + 4]
jmp 0x42d477
mov eax, str.pic_cache
push 0x800
push eax
push 0x538340
call fcn.00495450
add esp, 0xc
mov byte [0x538b3f], 0
cmp byte [0x538340], 0
jne 0x42d4d3
mov ecx, str.CACHEFOLDER
call fcn.00487da0
mov byte [0x538340], 0
test eax, eax
je 0x42d4b4
mov eax, dword [eax + 4]
jmp 0x42d4b9
mov eax, str.pic_cache
push 0x800
push eax
push 0x538340
call fcn.00495450
add esp, 0xc
mov byte [0x538b3f], 0
xor edx, edx
mov ecx, 0x538340
call fcn.00480f10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret