Function at 0x10003854
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov ecx, dword [0x100a0a10]
mov eax, dword [ecx]
push ebx
push esi
push edi
call dword [eax + 4]
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x10003a4a
mov al, byte [ebp - 1]
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.1000406d
push ebx
call fcn.10023260
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.100042f7
cmp dword [ebp - 0x14], edi
je 0x100038a6
lea ecx, [ebp - 0x18]
call fcn.10004041
mov eax, dword [ebp - 0x14]
jmp 0x100038ab
mov eax, 0x1007c564
cmp byte [eax], 0x5f
jne 0x100038ea
mov ecx, dword [0x100a0a10]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push 0x100872a0
push eax
call fcn.10005144
add esp, 0xc
push eax
mov ecx, 0x100a09d0
call fcn.10003db8
mov dword [eax], esi
push 1
lea ecx, [ebp - 0x48]
jmp 0x10003a29
cmp dword [ebp - 0x14], edi
je 0x100038fc
lea ecx, [ebp - 0x18]
call fcn.10004041
mov eax, dword [ebp - 0x14]
jmp 0x10003901
mov eax, 0x1007c564
movsx eax, byte [eax]
push eax
call fcn.100234ac
test eax, eax
pop ecx
jne 0x10003944
lea eax, [ebp - 1]
push eax
push dword [0x1007c560]
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x38]
call fcn.10003e6d
push dword [0x1007c560]
lea eax, [ebp - 0x38]
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.10003ef1
push 1
lea ecx, [ebp - 0x38]
call fcn.1000406d
xor esi, esi
cmp dword [ebp - 0x10], edi
jbe 0x100039e0
cmp dword [ebp - 0x10], esi
jb 0x10003968
cmp dword [ebp - 0x14], edi
je 0x10003968
lea ecx, [ebp - 0x18]
call fcn.10004041
mov eax, dword [ebp - 0x14]
add eax, esi
jmp 0x1000396d
mov eax, 0x1007c564
movsx eax, byte [eax]
push eax
call fcn.100234ac
test eax, eax
pop ecx
jne 0x1000399e
cmp dword [ebp - 0x10], esi
jb 0x10003994
cmp dword [ebp - 0x14], edi
je 0x10003994
lea ecx, [ebp - 0x18]
call fcn.10004041
mov eax, dword [ebp - 0x14]
add eax, esi
jmp 0x10003999
mov eax, 0x1007c564
cmp byte [eax], 0x5f
jne 0x100039a6
inc esi
cmp dword [ebp - 0x10], esi
ja 0x10003954
jmp 0x100039e0
mov al, byte [ebp - 1]
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.1000406d
push esi
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ef1
push dword [0x1007c560]
lea eax, [ebp - 0x28]
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.10003ef1
push 1
lea ecx, [ebp - 0x28]
call fcn.1000406d
mov ecx, dword [0x100a0a10]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.10003c9b
push eax
lea eax, [ebp - 0x58]
push 0x1008729c
push eax
call fcn.10005144
add esp, 0xc
push eax
mov ecx, 0x100a09d0
call fcn.10003db8
push 1
lea ecx, [ebp - 0x58]
mov dword [eax], esi
call fcn.1000406d
push 1
lea ecx, [ebp - 0x68]
call fcn.1000406d
push 1
lea ecx, [ebp - 0x18]
call fcn.1000406d
mov ecx, dword [0x100a0a10]
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, eax
jmp 0x1000386c
push 0xa
push 0x457
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
jne 0x10003a68
push str.Cant_find_resource
call fcn.10003b9f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x10003a80
push str.Cant_load_resource
call fcn.10003b9f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x10003a98
push str.Cant_lock_resource
call fcn.10003b9f
mov eax, dword [ebp - 8]
mov esi, dword [eax]
push 4
pop ebx
add dword [ebp - 8], ebx
push esi
call fcn.10022a32
push esi
push dword [ebp - 8]
mov dword [0x100a0a0c], eax
push eax
call fcn.10022a40
add dword [ebp - 8], esi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add dword [ebp - 8], ebx
add esp, 0x10
cmp eax, edi
jle 0x10003b16
mov edi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10003bbd
mov eax, dword [0x100a0a0c]
cmp dword [ebp - 0x5c], eax
jl 0x10003aea
add eax, esi
cmp dword [ebp - 0x5c], eax
jl 0x10003af4
push str.Illegal_symbol_value
call fcn.10003b9f
lea eax, [ebp - 0x6c]
push eax
mov ecx, 0x100a09e0
call fcn.10003db8
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
push 1
lea ecx, [ebp - 0x6c]
call fcn.1000406d
dec edi
jne 0x10003acc
xor edi, edi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add dword [ebp - 8], ebx
cmp eax, edi
jle 0x10003b50
mov edi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10003bbd
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x6c]
push eax
call fcn.10003c22
sub eax, esi
add dword [esi], eax
push 1
lea ecx, [ebp - 0x6c]
call fcn.1000406d
dec edi
jne 0x10003b24
xor edi, edi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add dword [ebp - 8], ebx
cmp eax, edi
jle 0x10003b86
mov edi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10003bbd
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x6c]
push eax
call fcn.10003c22
add dword [esi], eax
push 1
lea ecx, [ebp - 0x6c]
call fcn.1000406d
dec edi
jne 0x10003b5e
mov ecx, 0x100a09d0
call fcn.100042a2
mov ecx, 0x100a09e0
call fcn.100042a2
pop edi
pop esi
pop ebx
leave
ret