Function at 0x1002e120
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10059bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [esp + 0x148]
mov ebp, dword [esp + 0x140]
lea esi, [esp + 0x18]
mov edi, ecx
mov dword [esp + 0x24], eax
call fcn.1001b240
push 0xc
push str.ThumbCache_
mov ecx, esi
push ecx
mov dword [esp + 0x144], 0
call fcn.10013900
mov edx, dword [0x1006e504]
mov eax, dword [edx + 0xc]
mov ecx, 0x1006e504
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
cmp dword [esp + 0x144], 0
mov byte [esp + 0x138], 1
mov eax, str.nail
je 0x1002e1c5
mov eax, 0x10061018
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
push str._s_s__s.thumb
lea edi, [esp + 0x30]
call fcn.100126a0
mov ebx, dword [esp + 0x30]
add esp, 0xc
lea esi, [ebx - 0x10]
mov eax, esi
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.10002fe0
add eax, 0x10
mov dword [edi], eax
call fcn.1002b680
push 0x100605fc
lea eax, [esp + 0x1c]
push ebx
xor edi, edi
push eax
mov dword [esp + 0x24], edi
call fcn.1003fec1
add esp, 0x10
cmp eax, edi
jne 0x1002e302
cmp dword [esp + 0x14], edi
je 0x1002e302
push 1
push str.bd_wallpaper_thumb_ver:_.4d
lea ecx, [esp + 0x34]
push pe_nt_image_headers32
push ecx
call fcn.10041114
mov edx, dword [esp + 0x24]
push edx
push 1
lea eax, [esp + 0x44]
push pe_nt_image_headers32
push eax
call fcn.10040a01
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp]
mov edx, dword [ecx - 0xc]
push eax
push 4
lea ecx, [esp + 0x44]
push 1
push ecx
mov dword [esp + 0x4c], edx
call fcn.10040a01
mov eax, dword [ebp]
sub eax, 0x10
add esp, 0x30
cmp dword [eax + 0xc], 1
jle 0x1002e28a
mov edx, dword [eax + 4]
push edx
push ebp
call fcn.10004850
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ebp]
push eax
push 2
push ecx
push ebp
call fcn.10040a01
mov edx, dword [esp + 0x24]
push edx
push 4
lea eax, [esp + 0x164]
push 1
push eax
call fcn.10040a01
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x44]
push ecx
push 1
push edx
push eax
call fcn.10040a01
mov ecx, dword [esp + 0x44]
push ecx
call fcn.1004001f
add esp, 0x34
mov dword [esp + 0x14], edi
mov byte [esp + 0x138], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1002e323
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x1002e323
mov byte [esp + 0x138], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002e323
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002e34e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1003f2d1
add esp, 0x128
ret 0x10