Function at 0x10031e20
Capabilities:
Extract resource via kernel32 functions
Read file on windows

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 0x100f8dcf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3e0
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x19
lea edi, [ebp - 0x2e8]
mov esi, str._LOCALAPPDATA_360WallPaperOpenShellDataCache.db
lea eax, [ebp - 0x282]
rep movsd dword es:[edi], dword [esi]
push 0x1a2
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.100d6eb0
add esp, 0xc
lea eax, [ebp - 0x2e8]
push 0x104
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10032f72
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x364]
push 0
push eax
push 4
lea eax, [ebp - 0x36c]
mov byte [ebp - 0x365], 1
push eax
push edi
call esi
test eax, eax
je 0x10031f04
cmp dword [ebp - 0x364], 4
jne 0x10031f04
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x364], eax
jmp 0x10031f0e
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0
mov dword [ebp - 4], 0
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x10032f90
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x39c], eax
mov eax, str.SHELL32.DLL
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x10031f85
movzx ecx, ax
call fcn.10027d50
test eax, eax
je 0x10031f97
mov edx, str.SHELL32.DLL
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x39c]
call fcn.10026d00
jmp 0x10031f97
push 0xb
push str.SHELL32.DLL
lea ecx, [ebp - 0x39c]
call fcn.10021eb0
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov eax, dword [ebp - 0x38c]
movq qword [ebp - 0x398], xmm0
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x388], eax
je 0x10031fee
mov ecx, dword [ebp - 0x39c]
lea ecx, [ecx - 0x10]
call fcn.10021e50
mov ecx, dword [ebp - 0x36c]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x398]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x394]
mov dword [ecx + 8], eax
add dword [ebp - 0x38c], 0xc
jmp 0x10032001
lea ecx, [ebp - 0x39c]
push ecx
push eax
lea ecx, [ebp - 0x390]
call fcn.10035c90
push 0xc
push str.IMAGERES.DLL
lea ecx, [ebp - 0x39c]
call fcn.10021eb0
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x388], eax
je 0x1003205b
mov ecx, dword [ebp - 0x39c]
add ecx, 0xfffffff0
call fcn.10021e50
mov ecx, dword [ebp - 0x36c]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x398]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x394]
mov dword [ecx + 8], eax
add dword [ebp - 0x38c], 0xc
jmp 0x1003206e
lea ecx, [ebp - 0x39c]
push ecx
push eax
lea ecx, [ebp - 0x390]
call fcn.10035c90
mov ecx, 0x1014bfc0
call fcn.10035340
cmp dword [ebp - 0x364], 0x434c5348
jne 0x10032e01
push 0
lea eax, [ebp - 0x364]
push eax
push 4
lea eax, [ebp - 0x36c]
push eax
push edi
call esi
test eax, eax
je 0x100320b8
cmp dword [ebp - 0x364], 4
jne 0x100320b8
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x364], eax
jmp 0x100320c2
mov dword [ebp - 0x364], 0
sub esp, 8
lea ecx, [ebp - 0x3b4]
call fcn.10034f40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3b4]
push 0x10
push 1
mov dword [eax], 0
mov eax, dword [0x1014be3c]
push eax
mov dword [ebp - 0x36c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x100320fe
xor ecx, ecx
jmp 0x10032135
push eax
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
jne 0x1003211c
xor ecx, ecx
jmp 0x10032135
movzx eax, word [edx + 0x38]
movzx ecx, al
movzx eax, word [edx + 0x3a]
shl eax, 8
or ecx, eax
movzx eax, word [edx + 0x3e]
shl ecx, 0x10
or ecx, eax
cmp dword [ebp - 0x364], ecx
jne 0x10032df6
push 0
lea eax, [ebp - 0x364]
push eax
push 4
lea eax, [ebp - 0x36c]
push eax
push edi
call esi
test eax, eax
je 0x10032df6
cmp dword [ebp - 0x364], 4
jne 0x10032df6
cmp dword [ebp - 0x36c], 2
jne 0x10032df6
mov ecx, edi
call fcn.10031bc0
mov ecx, edi
mov dword [ebp - 0x3c0], eax
call fcn.10031bc0
mov ecx, edi
mov dword [ebp - 0x3c4], eax
call fcn.10031bc0
mov ecx, edi
mov dword [ebp - 0x3c8], eax
call fcn.10031bc0
mov ecx, edi
mov dword [ebp - 0x384], eax
call fcn.10031bc0
push 0
mov dword [ebp - 0x37c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp - 0x37c], 0x49434f4e
mov dword [ebp - 0x364], eax
jne 0x10032670
push 0
lea eax, [ebp - 0x3b8]
push eax
push 0x1c
lea eax, [ebp - 0x304]
push eax
push edi
call esi
test eax, eax
je 0x1003266a
cmp dword [ebp - 0x3b8], 0x1c
jne 0x1003266a
mov byte [ebp - 4], 4
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x10032f90
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x374], eax
add eax, 0x10
mov dword [ebp - 0x3d8], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x300]
mov edx, dword [ebp - 0x2fc]
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x3ec], ecx
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0x3e4], ecx
mov dword [ebp - 0x3e0], eax
mov word [ebp - 0x3e8], 0
mov dword [ebp - 0x36c], edx
test edx, edx
jle 0x100322db
mov eax, dword [ebp - 0x374]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edx
or eax, ecx
jge 0x10032294
push edx
lea ecx, [ebp - 0x3d8]
call fcn.10021230
mov edx, dword [ebp - 0x36c]
push 0
lea ecx, [ebp - 0x3bc]
push ecx
lea eax, [edx + edx]
push eax
push dword [ebp - 0x3d8]
mov dword [ebp - 0x374], eax
push edi
call esi
test eax, eax
je 0x100325cd
mov eax, dword [ebp - 0x374]
cmp dword [ebp - 0x3bc], eax
jne 0x100325cd
push dword [ebp - 0x36c]
lea ecx, [ebp - 0x3d8]
call fcn.10038070
mov eax, dword [ebp - 0x3c0]
cmp eax, dword [0x1014b4c8]
jne 0x10032500
mov eax, dword [ebp - 0x3c4]
cmp eax, dword [0x1014b4c4]
jne 0x10032500
cmp dword [ebp - 0x3c8], 0x40
jne 0x10032500
lea eax, [ebp - 0x390]
push eax
lea edx, [ebp - 0x3e4]
lea ecx, [ebp - 0x3d8]
call fcn.10031bf0
add esp, 4
test al, al
je 0x10032500
mov ecx, dword [ebp - 0x2ec]
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x36c], eax
imul eax, ecx
push ecx
mov dword [ebp - 0x374], ecx
lea ecx, [ebp - 0x3a8]
push eax
call fcn.10034f90
mov esi, dword [ebp - 0x3a8]
cmp esi, dword [ebp - 0x3a4]
je 0x10032600
mov eax, dword [ebp - 0x36c]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x374]
movups xmmword [ebp - 0x334], xmm0
mov dword [ebp - 0x334], eax
imul eax, ecx
push 0
mov dword [ebp - 0x330], ecx
lea ecx, [ebp - 0x378]
push ecx
movups xmmword [ebp - 0x324], xmm0
shl eax, 2
push eax
push esi
mov dword [ebp - 0x36c], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
movq qword [ebp - 0x314], xmm0
mov dword [ebp - 0x338], 0x28
mov dword [ebp - 0x32c], 0x200001
call eax
test eax, eax
je 0x10032600
mov eax, dword [ebp - 0x36c]
cmp dword [ebp - 0x378], eax
jne 0x10032600
push 0
push 0
lea eax, [ebp - 0x3cc]
push eax
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x364]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x3dc], eax
test eax, eax
je 0x10032600
push dword [ebp - 0x36c]
push esi
push dword [ebp - 0x3cc]
call fcn.100d7080
add esp, 0xc
test esi, esi
je 0x10032486
mov eax, dword [ebp - 0x3a0]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x1003245e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032f9a
push ecx
push esi
call fcn.100d4917
add esp, 8
mov dword [ebp - 0x3a8], 0
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x3a0], 0
lea eax, [ebp - 0x3ec]
mov ecx, 0x1014bfc8
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.10036830
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x3d4]
mov ecx, 0x1014bfc8
push eax
call fcn.100368e0
mov ecx, dword [ebp - 0x3d4]
mov eax, dword [ebp - 0x3b0]
add ecx, 0x14
mov dword [ebp - 0x374], ecx
cmp dword [ebp - 0x3ac], eax
je 0x100324e5
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x3b0], eax
jmp 0x10032558
lea ecx, [ebp - 0x374]
push ecx
push eax
lea ecx, [ebp - 0x3b4]
call fcn.10020380
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x10032558
mov eax, dword [ebp - 0x2f0]
imul eax, dword [ebp - 0x2ec]
push 1
push 0
shl eax, 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x3b0]
mov dword [ebp - 0x374], 0
cmp dword [ebp - 0x3ac], eax
je 0x10032545
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x3b0], eax
jmp 0x10032558
lea ecx, [ebp - 0x374]
push ecx
push eax
lea ecx, [ebp - 0x3b4]
call fcn.10020380
push 0
lea eax, [ebp - 0x370]
push eax
push 4
lea eax, [ebp - 0x380]
push eax
push edi
call esi
test eax, eax
je 0x10032588
cmp dword [ebp - 0x370], 4
jne 0x10032588
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x37c], ecx
jmp 0x10032592
mov dword [ebp - 0x37c], 0
mov edx, dword [ebp - 0x3d8]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100325b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x37c], 0x49434f4e
je 0x100321d7
jmp 0x1003266a
lea ecx, [ebp - 0x3d8]
call fcn.10022f70
mov edx, dword [ebp - 0x3d8]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100325fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
jmp 0x1003266a
test esi, esi
je 0x1003263e
mov eax, dword [ebp - 0x3a0]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x10032634
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032f9a
push ecx
push esi
call fcn.100d4917
add esp, 8
mov edx, dword [ebp - 0x3d8]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10032660
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x364]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x37c]
cmp eax, 0x4954454d
je 0x100326e5
mov byte [ebp - 0x365], 1
cmp eax, 0x424c414b
jne 0x10032df6
mov ecx, edi
call fcn.10031bc0
mov dword [ebp - 0x364], eax
test eax, eax
jle 0x10032df6
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x3d0]
push eax
push 4
lea eax, [ebp - 0x384]
push eax
push edi
call esi
test eax, eax
je 0x10032dc2
cmp dword [ebp - 0x3d0], 4
jne 0x10032dc2
mov eax, dword [ebp - 0x384]
jmp 0x10032dc4
lea eax, [ebp - 0x364]
mov dword [ebp - 0x380], 0
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x364], 0x64
push eax
lea eax, [ebp - 0x380]
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0xe0]
push 0x811c9dc5
lea edx, [eax + eax]
call fcn.100b3760
add esp, 4
cmp eax, dword [ebp - 0x384]
setne byte [ebp - 0x365]
jne 0x10032df6
mov eax, dword [ebp - 0x37c]
nop dword [eax + eax]
cmp eax, 0x4954454d
jne 0x1003268b
push 0
lea eax, [ebp - 0x384]
push eax
push 0x54
lea eax, [ebp - 0x360]
push eax
push edi
call esi
test eax, eax
je 0x10032db9
cmp dword [ebp - 0x384], 0x54
jne 0x10032db9
lea ecx, [ebp - 0x7c]
call fcn.10027fd0
push eax
lea eax, [ebp - 0x360]
mov byte [ebp - 4], 9
push eax
mov ecx, 0x1014bfb0
call fcn.10036700
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x3a4]
mov ecx, 0x1014bfb0
push eax
call fcn.10036780
mov esi, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x7c]
add esi, 0x14
mov byte [ebp - 4], 3
call fcn.1002a5d0
mov eax, dword [ebp - 0x35c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x358]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x354]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x350]
mov dword [esi + 0x24], eax
mov al, byte [ebp - 0x34c]
mov ecx, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x3b4]
sub ecx, edx
mov byte [esi + 0x28], al
mov byte [esi + 0x29], 0
mov al, byte [ebp - 0x34b]
mov byte [esi + 0x2a], al
mov al, byte [ebp - 0x34a]
mov byte [esi + 0x2b], al
mov al, byte [ebp - 0x349]
mov byte [esi + 0x2d], al
mov al, byte [ebp - 0x348]
mov byte [esi + 0x2e], al
mov al, byte [ebp - 0x347]
mov byte [esi + 0x2f], al
mov al, byte [ebp - 0x346]
mov byte [esi + 0x30], al
mov eax, dword [ebp - 0x32c]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0
mov eax, dword [ebp - 0x314]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x310]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x338]
sar ecx, 2
cmp eax, ecx
jge 0x10032878
mov eax, dword [edx + eax*4]
jmp 0x1003287a
xor eax, eax
mov dword [esi + 4], eax
test eax, eax
jne 0x1003288d
and dword [esi + 0x40], 0xffffffef
mov eax, dword [0x1014bfdc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x334]
cmp eax, ecx
jge 0x1003289c
mov eax, dword [edx + eax*4]
jmp 0x1003289e
xor eax, eax
mov dword [esi + 8], eax
test eax, eax
jne 0x100328b1
and dword [esi + 0x40], 0xffffffdf
mov eax, dword [0x1014bfe0]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x330]
cmp eax, ecx
jge 0x100328c0
mov eax, dword [edx + eax*4]
jmp 0x100328c2
xor eax, eax
mov dword [esi + 0xc], eax
test eax, eax
jne 0x100328d5
and dword [esi + 0x40], 0xffffffbf
mov eax, dword [0x1014bfe4]
mov dword [esi + 0xc], eax
cmp byte [ebp - 0x365], 0
jne 0x10032b2d
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x364], eax
test eax, eax
jle 0x10032948
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x36c], eax
test eax, eax
je 0x10032b2d
push 0
lea ecx, [ebp - 0x380]
push ecx
push dword [ebp - 0x364]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call eax
test eax, eax
je 0x10032994
mov eax, dword [ebp - 0x364]
cmp dword [ebp - 0x380], eax
jne 0x10032994
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1003293f
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x36c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x340]
lea edx, [esi + 0x34]
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x378], edx
test eax, eax
jle 0x100329f4
mov eax, dword [edx]
mov ecx, 1
mov dword [ebp - 0x370], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, dword [ebp - 0x364]
or eax, ecx
jge 0x100329a6
push dword [ebp - 0x364]
mov ecx, edx
call fcn.10021230
mov ecx, dword [esi + 0x34]
jmp 0x100329ac
mov eax, dword [ebp - 0x36c]
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x10032b2d
mov ecx, dword [ebp - 0x370]
mov eax, dword [ebp - 0x364]
lea edx, [ebp - 0x3cc]
push 0
push edx
add eax, eax
push eax
push ecx
push edi
mov dword [ebp - 0x370], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10032b22
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x3cc], eax
jne 0x10032b22
push dword [ebp - 0x364]
lea ecx, [esi + 0x34]
call fcn.10038070
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x364], edx
test edx, edx
jle 0x10032a69
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x10032a25
push edx
mov ecx, esi
call fcn.10021230
mov edx, dword [ebp - 0x364]
mov eax, dword [esi]
lea ecx, [edx + edx]
push 0
lea edx, [ebp - 0x3c8]
mov dword [ebp - 0x370], ecx
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10032b6f
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x3c8], eax
jne 0x10032b6f
push dword [ebp - 0x364]
mov ecx, esi
call fcn.10038070
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x364], eax
test eax, eax
jle 0x10032ad6
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x36c], eax
test eax, eax
je 0x10032b2d
push 0
lea ecx, [ebp - 0x3c4]
push ecx
push dword [ebp - 0x364]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10032994
mov eax, dword [ebp - 0x364]
cmp dword [ebp - 0x3c4], eax
jne 0x10032994
mov eax, dword [esi + 0x48]
test eax, eax
je 0x10032acd
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, dword [ebp - 0x36c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x324]
lea edx, [esi + 0x4c]
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x378], edx
test eax, eax
jle 0x10032bbd
mov eax, dword [edx]
mov ecx, 1
mov dword [ebp - 0x370], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, dword [ebp - 0x364]
or eax, ecx
jge 0x10032b73
push dword [ebp - 0x364]
mov ecx, edx
call fcn.10021230
mov ecx, dword [esi + 0x4c]
jmp 0x10032b79
mov ecx, dword [ebp - 0x378]
call fcn.10022f70
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebp - 0x365], 1
push 0
lea eax, [ebp - 0x37c]
push eax
push 4
lea eax, [ebp - 0x3d0]
push eax
push edi
call esi
test eax, eax
je 0x10032da5
cmp dword [ebp - 0x37c], 4
jne 0x10032da5
mov eax, dword [ebp - 0x3d0]
jmp 0x10032da7
mov ecx, esi
jmp 0x10032b28
mov ecx, dword [ebp - 0x370]
mov eax, dword [ebp - 0x364]
lea edx, [ebp - 0x3c0]
push 0
push edx
add eax, eax
push eax
push ecx
push edi
mov dword [ebp - 0x370], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10032b22
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x3c0], eax
jne 0x10032b22
push dword [ebp - 0x364]
lea ecx, [esi + 0x4c]
call fcn.10038070
mov eax, dword [ebp - 0x320]
lea edx, [esi + 0x50]
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x378], edx
test eax, eax
jle 0x10032c53
mov eax, dword [edx]
mov ecx, 1
mov dword [ebp - 0x370], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, dword [ebp - 0x364]
or eax, ecx
jge 0x10032c05
push dword [ebp - 0x364]
mov ecx, edx
call fcn.10021230
mov ecx, dword [esi + 0x50]
jmp 0x10032c0b
mov ecx, dword [ebp - 0x370]
mov eax, dword [ebp - 0x364]
lea edx, [ebp - 0x3bc]
push 0
push edx
add eax, eax
push eax
push ecx
push edi
mov dword [ebp - 0x370], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10032b22
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x3bc], eax
jne 0x10032b22
push dword [ebp - 0x364]
lea ecx, [esi + 0x50]
call fcn.10038070
mov eax, dword [ebp - 0x31c]
lea edx, [esi + 0x54]
mov dword [ebp - 0x364], eax
mov dword [ebp - 0x378], edx
test eax, eax
jle 0x10032ce9
mov eax, dword [edx]
mov ecx, 1
mov dword [ebp - 0x370], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, dword [ebp - 0x364]
or eax, ecx
jge 0x10032c9b
push dword [ebp - 0x364]
mov ecx, edx
call fcn.10021230
mov ecx, dword [esi + 0x54]
jmp 0x10032ca1
mov ecx, dword [ebp - 0x370]
mov eax, dword [ebp - 0x364]
lea edx, [ebp - 0x374]
push 0
push edx
add eax, eax
push eax
push ecx
push edi
mov dword [ebp - 0x370], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10032b22
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x374], eax
jne 0x10032b22
push dword [ebp - 0x364]
lea ecx, [esi + 0x54]
call fcn.10038070
mov edx, dword [ebp - 0x318]
add esi, 0x58
mov dword [ebp - 0x364], edx
mov dword [ebp - 0x36c], esi
test edx, edx
jle 0x10032d93
mov eax, dword [esi]
mov ecx, 1
mov dword [ebp - 0x370], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x10032d31
push edx
mov ecx, esi
call fcn.10021230
mov eax, dword [esi]
mov edx, dword [ebp - 0x364]
jmp 0x10032d37
mov eax, dword [ebp - 0x370]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [edx + edx]
push 0
lea edx, [ebp - 0x3b8]
mov dword [ebp - 0x370], ecx
push edx
push ecx
push eax
push edi
call esi
test eax, eax
je 0x10032d83
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x3b8], eax
jne 0x10032d83
push dword [ebp - 0x364]
mov ecx, dword [ebp - 0x36c]
call fcn.10038070
mov byte [ebp - 0x365], 0
jmp 0x10032b3a
mov ecx, dword [ebp - 0x36c]
call fcn.10022f70
jmp 0x10032b33
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebp - 0x365], 0
jmp 0x10032b3a
xor eax, eax
cmp byte [ebp - 0x365], 0
je 0x10032750
jmp 0x1003268b
mov byte [ebp - 0x365], 1
jmp 0x10032df6
xor eax, eax
push dword [ebp - 0x3d0]
mov dword [ebp - 0x380], eax
lea eax, [ebp - 0x380]
push eax
push ecx
lea eax, [ebp - 0x3a4]
mov ecx, 0x1014bfc0
push eax
call fcn.10036130
sub dword [ebp - 0x364], 1
jne 0x100326b0
lea ecx, [ebp - 0x3b4]
call fcn.10010820
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x365], 0
je 0x10032eef
mov byte [ebp - 4], 0xa
mov ecx, 0x1014bfb0
mov esi, dword [0x1014bfb0]
push dword [esi + 4]
call fcn.10035750
mov eax, dword [0x1014bfb0]
mov dword [eax + 4], esi
mov eax, dword [0x1014bfb0]
mov dword [eax], esi
mov eax, dword [0x1014bfb0]
mov dword [eax + 8], esi
mov edi, dword [0x1014bfc8]
mov dword [0x1014bfb4], 0
mov esi, dword [edi]
cmp esi, edi
je 0x10032eb4
nop dword [eax]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10032e74
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [0x1014bfc8]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10032e9a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10032e96
cmp esi, dword [eax + 8]
jne 0x10032e96
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10032e86
mov esi, eax
jmp 0x10032eb0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10032eb0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10032ea4
cmp esi, edi
jne 0x10032e60
mov byte [ebp - 4], 0xb
mov ecx, 0x1014bfc8
push dword [edi + 4]
call fcn.10035680
mov eax, dword [0x1014bfc8]
mov dword [eax + 4], edi
mov eax, dword [0x1014bfc8]
mov dword [eax], edi
mov eax, dword [0x1014bfc8]
mov byte [ebp - 4], 2
mov dword [eax + 8], edi
mov dword [0x1014bfcc], 0
call fcn.1002a8c0
mov edx, dword [ebp - 0x39c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10032f11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x390]
test ecx, ecx
je 0x10032f72
mov edx, dword [ebp - 0x38c]
push ecx
call fcn.10027080
mov ecx, dword [ebp - 0x388]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x390]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x10032f68
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032f9f
push ecx
push esi
call fcn.100d4917
add esp, 8
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.100d4906
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.10013970
call fcn.100dca69
call fcn.100dca69
int3