Function at 0x40687c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], 0x819a94
mov dword [ebp - 0x48], 0x406d34
mov dword [ebp - 0x44], ebp
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x44], 0x406bb5
mov dword [ebp - 0x60], 1
lea eax, [ebp - 0x68]
call fcn.0081a4cd
sub esp, 4
lea eax, [ebp - 0x10]
push esi
push 0x81ef7a
push eax
call fcn.00414104
add esp, 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 2
sub esp, 4
lea eax, [ebp - 0x14]
push 0
push str.band_itu
push eax
call fcn.0081a760
add esp, 0x10
mov dword [ebp - 0x60], 3
sub esp, 4
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
call fcn.0081a99c
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.00413a98
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.00413a98
add esp, 0x10
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x60], 4
sub esp, 4
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push edx
push eax
push ecx
call fcn.0081a99c
add esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x60], 5
sub esp, 4
push 0
push 0x81e284
lea eax, [ebp - 0x10]
push eax
call fcn.0081a760
add esp, 0x10
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 6
sub esp, 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0081a99c
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
mov dword [ebp - 0x60], 7
sub esp, 8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], ecx
push ecx
call fcn.0081a860
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.00413a98
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.00413a98
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x24]
push eax
call fcn.00413a98
add esp, 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x60], 8
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x18]
call fcn.005d1334
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x60], 9
mov edx, 1
call fcn.004c5a80
mov ebx, eax
sub esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.0081bb38
add esp, 0x10
test bl, bl
je 0x406a9d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x60], 0x11
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
call fcn.005d1334
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0x12
mov eax, dword [ebp - 0x28]
call dword [ebp - 0x6c]
sub esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call fcn.0081bb38
add esp, 0x10
jmp 0x406b7c
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov eax, 0x81e454
je 0x406aab
mov eax, ecx
mov dword [ebp - 0x60], 0xa
sub esp, 4
push 0xa
push eax
push 0
call sub.KERNEL32.DLL_FindResourceA
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x60], 0xb
sub esp, 8
push dword [ebp - 0x18]
push 0
call sub.KERNEL32.DLL_LoadResource
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x60], 0xc
sub esp, 0xc
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_LockResource
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 0xd
sub esp, 8
push dword [ebp - 0x18]
push 0
call sub.KERNEL32.DLL_SizeofResource
add esp, 8
mov ecx, eax
mov dword [ebp - 0x70], esp
lea esi, [ebp - 0x3c]
lea edx, [ecx + ecx + 0xf]
and edx, 0xfffffff0
mov eax, edx
call fcn.00806d88
sub sp, dx
mov eax, esp
mov dword [esi], esp
mov dword [ebp - 0x60], 0xe
sub esp, 4
push ecx
push dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
push eax
call fcn.00810b50
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x90]
mov dword [ebp - 0x60], 0xf
mov edx, dword [ebp - 0x18]
call ecx
mov dword [ebp - 0x60], 0x10
sub esp, 0xc
push dword [ebp - 0x28]
call sub.KERNEL32.DLL_FreeResource
add esp, 0xc
mov esp, dword [ebp - 0x70]
lea eax, [ebp - 0x3c]
mov dword [eax], esp
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], 0x14
sub esp, 0xc
push eax
call fcn.00411e5c
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x20]
push eax
call fcn.00413a98
add esp, 0x10
sub esp, 0xc
lea eax, [ebp - 0x68]
push eax
call fcn.0081a4ee
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret