Function at 0x10402ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10b30cc]
mov edi, 0x10b30cc
cmp eax, edi
je 0x104030c
test byte [eax + 0x1c], 1
je 0x104030c
cmp byte [eax + 0x19], 5
jb 0x104030c
push dword [ebp + 8]
push 0x1003990
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
mov ecx, dword [0x10b6968]
test ecx, ecx
mov dword [ebp - 4], ecx
jne 0x1040338
call dword [fcn.010011dc]
test eax, eax
mov ebx, 0x80070000
jle 0x104032f
and eax, 0xffff
or eax, ebx
mov esi, eax
mov eax, dword [0x10b30cc]
jmp 0x104033f
xor esi, esi
mov ebx, 0x80070000
cmp eax, edi
je 0x1040367
test byte [eax + 0x1c], 2
je 0x1040367
cmp byte [eax + 0x19], 4
jb 0x1040367
push esi
push 0x1003990
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
xor edi, edi
cmp dword [ebp - 4], edi
je 0x10403ce
movzx eax, word [ebp + 8]
push 0x3f9
push eax
push dword [ebp - 4]
call dword [fcn.01001200]
mov edi, eax
test edi, edi
jne 0x104039c
call dword [fcn.010011dc]
test eax, eax
jle 0x1040398
and eax, 0xffff
or eax, ebx
mov esi, eax
jmp 0x104039e
xor esi, esi
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10403ce
test byte [eax + 0x1c], 2
je 0x10403ce
cmp byte [eax + 0x19], 4
jb 0x10403ce
push esi
push 0x1003990
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
and dword [ebp + 8], 0
test edi, edi
je 0x104042e
push edi
push dword [ebp - 4]
call dword [0x1001204]
test eax, eax
mov dword [ebp + 8], eax
jne 0x10403fc
call dword [fcn.010011dc]
test eax, eax
jle 0x10403f8
and eax, 0xffff
or eax, ebx
mov esi, eax
jmp 0x10403fe
xor esi, esi
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x104042e
test byte [eax + 0x1c], 2
je 0x104042e
cmp byte [eax + 0x19], 4
jb 0x104042e
push esi
push 0x1003990
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x1040490
push edi
push dword [ebp - 4]
call dword [0x100120c]
test eax, eax
mov dword [ebp - 8], eax
jne 0x104045e
call dword [fcn.010011dc]
test eax, eax
jle 0x104045a
and eax, 0xffff
or eax, ebx
mov esi, eax
jmp 0x1040460
xor esi, esi
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x1040490
test byte [eax + 0x1c], 2
je 0x1040490
cmp byte [eax + 0x19], 4
jb 0x1040490
push esi
push 0x1003990
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
cmp dword [ebp - 8], 0
je 0x10405c9
push dword [ebp + 8]
call dword [0x1001208]
mov edi, eax
mov esi, edi
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10404e7
test byte [eax + 0x1c], 2
je 0x10404e7
cmp byte [eax + 0x19], 4
jb 0x10404e7
push esi
push 0x1003990
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
test edi, edi
je 0x10405c9
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [0x1001154]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x104052c
call dword [fcn.010011dc]
test eax, eax
jle 0x1040528
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x104052e
xor esi, esi
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x104055e
test byte [eax + 0x1c], 2
je 0x104055e
cmp byte [eax + 0x19], 4
jb 0x104055e
push esi
push 0x1003990
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [0x10b30cc]
cmp ebx, 0xffffffff
je 0x10405c9
xor esi, esi
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
mov dword [ebp + 8], esi
push edi
push ebx
call dword [0x1001150]
test eax, eax
jne 0x1040592
call dword [fcn.010011dc]
cmp eax, esi
jle 0x1040590
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10405bd
test byte [eax + 0x1c], 2
je 0x10405bd
cmp byte [eax + 0x19], 4
jb 0x10405bd
push esi
push 0x1003990
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
push ebx
call dword [fcn.010011f8]
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10405fe
test byte [eax + 0x1c], 1
je 0x10405fe
movzx ecx, byte [eax + 0x19]
xor edx, edx
test esi, esi
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x10405fe
push esi
push 0x1003990
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8