Function at 0x10001fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025290
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov edi, edi
mov word [ebp + eax*2 - 0x24], ax
inc eax
cmp eax, 8
jl 0x10002010
mov edi, dword [ebp + 0xc]
mov esi, dword [edi - 0xc]
xor edx, edx
mov word [ebp - 0x14], dx
cmp esi, ecx
jle 0x1000204c
test ecx, ecx
js case.0x100021ac.22
cmp ecx, esi
jg case.0x100021ac.22
movzx eax, word [edi + ecx*2]
xor word [ebp + edx*2 - 0x24], ax
lea eax, [edx + 1]
cdq
mov ebx, 7
inc ecx
idiv ebx
cmp ecx, esi
jl 0x1000202b
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
mov esi, str._04X
shr esi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], esi
jmp 0x10002086
push 0x80070057
call fcn.100040a0
mov esi, dword [ebp - 0x44]
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 2
test esi, esi
jne 0x100021ca
mov eax, str._04X
movzx edi, ax
push edi
call fcn.10003db0
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1000227b
mov ecx, edi
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1000227b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000227b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000227b
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10002132
lea esp, [esp]
cmp esi, eax
jae 0x1000227b
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10002120
cmp esi, eax
jae 0x1000227b
movzx eax, word [esi]
test ax, ax
je 0x1000227b
mov edi, eax
test edi, edi
js case.0x100021ac.22
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x1000216e
mov eax, edi
lea ecx, [ebp - 0x28]
call fcn.10004100
mov ebx, dword [ebp - 0x28]
movzx eax, word [esi]
add esi, 2
cmp eax, 0xffffffff
jne 0x10002190
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002180
sub eax, edx
sar eax, 1
inc eax
push eax
push esi
push edi
push ebx
call fcn.10013958
add esp, 0x10
cmp eax, 0x50
ja case.0x100021ac.1
movzx eax, byte [eax + 0x100023e0]
jmp dword [eax*4 + 0x100023d0]
cmp edi, dword [ebx - 8]
jg case.0x100021ac.22
xor ecx, ecx
mov dword [ebx - 0xc], edi
mov word [ebx + edi*2], cx
jmp 0x1000227b
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push str._04X
push 0
push 3
call edi
lea esi, [eax - 1]
test esi, esi
jle 0x10002229
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x10002206
mov eax, esi
lea ecx, [ebp - 0x28]
call fcn.10004100
mov ebx, dword [ebp - 0x28]
push esi
push ebx
push 0xffffffffffffffff
push str._04X
push 0
push 3
call edi
cmp esi, dword [ebx - 8]
jg case.0x100021ac.22
xor edx, edx
mov dword [ebx - 0xc], esi
mov word [ebx + esi*2], dx
jmp 0x1000227b
cmp dword [ebx - 0xc], 0
mov esi, dword [ebx - 0x10]
lea eax, [ebx - 0x10]
je 0x1000227b
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x10002256
cmp dword [ebx - 8], 0
jl case.0x100021ac.22
xor eax, eax
mov dword [ebx - 0xc], 0
mov word [ebx], ax
jmp 0x1000227b
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000226c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 3
mov eax, dword [ecx]
mov edx, 1
test eax, eax
jle 0x100022ab
mov esi, dword [ebp - 0x2c]
mov edi, dword [ecx + 8]
movzx esi, word [ebp + esi*2 - 0x24]
mov ecx, eax
lea ebx, [ebx]
mov eax, esi
imul eax, edx
cdq
idiv edi
dec ecx
jne 0x100022a0
movzx ecx, dx
push ecx
push ebx
lea edi, [ebp - 0x30]
call fcn.10003ae0
add ebx, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 1
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x100022db
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 8
jl 0x10002083
mov esi, dword [ebp - 0x30]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x10002329
cmp eax, dword [esi]
jne 0x10002329
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10002365
push 0x8007000e
call fcn.100040a0
push 0x80004005
call fcn.100040a0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x10002342
call fcn.100040c0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.100135f1
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [ebp - 0x3c]
mov dword [edi], edx
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000238a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100023b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret 8