Function at 0x10012770
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10057de6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x140]
xor ebx, ebx
lea esi, [esp + 0x20]
mov edi, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.1001b240
push 0xd
push str.CatelogIcon_
mov eax, esi
push eax
mov dword [esp + 0x140], ebx
call fcn.10013900
mov edx, dword [0x1006e504]
mov eax, dword [edx + 0xc]
mov ecx, 0x1006e504
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x134], 1
mov ecx, dword [edi]
mov esi, dword [esp + 0x20]
push ecx
push esi
push str._s__s.catelogicon
lea edi, [esp + 0x30]
call fcn.100126a0
mov edi, dword [esp + 0x30]
push 0x100605d0
lea edx, [esp + 0x24]
push edi
push edx
mov dword [esp + 0x2c], ebx
call fcn.1003fec1
add esp, 0x18
cmp eax, ebx
jne 0x100129e2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100129e2
push eax
push pe_nt_image_headers32
push 1
lea eax, [esp + 0x34]
push pe_nt_image_headers32
push eax
call fcn.10040e73
add esp, 0x14
cmp eax, 0x100
jne 0x1001297d
mov edx, str.bd_wallpaper_catelogicon_ver:0001
lea ecx, [esp + 0x28]
nop
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10012890
cmp al, bl
je 0x1001288c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10012890
add ecx, 2
add edx, 2
cmp al, bl
jne 0x10012870
xor eax, eax
jmp 0x10012895
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1001297d
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 4
lea edx, [esp + 0x28]
push 4
push edx
mov dword [esp + 0x30], ebx
call fcn.10040e73
mov eax, dword [esp + 0x30]
add esp, 0x14
cmp eax, ebx
je 0x1001297d
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003e829
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001297d
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push eax
push 2
lea ecx, [eax + eax]
push ecx
push esi
call fcn.10040e73
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x30]
add esp, 0x14
xor edx, edx
push ecx
mov ecx, esi
mov word [esi + eax*2], dx
call fcn.10007b00
test eax, eax
jne 0x1001297d
mov edx, dword [esp + 0x14]
push edx
push 1
push 4
push 4
push ebp
mov dword [ebp], ebx
call fcn.10040e73
mov eax, dword [ebp]
add esp, 0x14
cmp eax, ebx
jle 0x1001297d
push eax
call fcn.1003e829
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x1001297d
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [esp + 0x18]
push ecx
push eax
push 1
push eax
push edx
call fcn.10040e73
add esp, 0x14
cmp eax, dword [ebp]
je 0x1001297d
mov eax, dword [esp + 0x18]
push eax
call fcn.1004009b
add esp, 4
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1004001f
lea eax, [edi - 0x10]
add esp, 4
mov dword [esp + 0x14], ebx
mov byte [esp + 0x134], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100129b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x134], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100129dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x10012a2e
lea eax, [edi - 0x10]
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10012a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.1003f2d1
add esp, 0x124
ret 8