Function at 0x37f9d7b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov di, word [esp + 0x3c]
movzx ebx, di
add ebx, dword [esp + 0x38]
push 0xda
push 1
xor esi, esi
push ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x37f9d832
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x37f9d832
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [esp + 0x48]
mov ebp, eax
mov al, cl
and al, 1
mov byte [esp + 0x34], al
je 0x37f9d855
mov edx, dword [esp + 0x40]
test cl, 8
je 0x37f9d819
mov edi, edx
jmp 0x37f9d826
mov edi, dword [esp + 0x40]
add edi, 2
xor eax, eax
mov word [edi - 2], ax
cmp word [esp + 0x3c], si
jne 0x37f9d83e
xor ecx, ecx
mov word [edi], cx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x20
movzx eax, word [esp + 0x44]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [edi + eax*2 - 2]
mov dword [esp + 0x18], eax
jmp 0x37f9d8af
test di, di
jne 0x37f9d876
mov eax, dword [esp + 0x40]
mov byte [eax], 0
test cl, 4
je 0x37f9d86a
mov byte [eax + 1], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x20
movzx eax, word [esp + 0x44]
mov ecx, dword [esp + 0x4c]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
add eax, eax
push edx
push eax
mov dword [esp + 0x48], eax
call fcn.37f8cc8f
test eax, eax
jl 0x37f9d832
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
lea edx, [eax + ecx - 2]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
mov edi, ecx
mov dword [esp + 0x28], edi
cmp dword [esp + 0x38], ebx
jae 0x37f9d98a
cmp edi, dword [esp + 0x18]
jae 0x37f9d986
mov eax, dword [esp + 0x38]
mov cl, byte [eax]
inc eax
mov byte [esp + 0x3c], cl
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], 8
mov dl, byte [esp + 0x3c]
shr dl, 7
movzx ax, dl
movzx ecx, ax
movzx eax, si
movzx ebx, cx
mov dword [esp + 0x20], ecx
lea ecx, [eax + eax*2]
lea edx, [ebx + ecx*2]
movzx ecx, word [ebp + edx*2]
test cx, cx
je 0x37f9d90b
movzx esi, cx
jmp 0x37f9d95f
lea eax, [eax + eax*2]
lea edx, [ebp + eax*4 + 4]
mov eax, edx
xor ecx, ecx
cmp word [eax], cx
jne 0x37f9d920
lea eax, [ecx + 1]
jmp 0x37f9d933
add eax, 2
cmp cx, 4
jae 0x37f9d930
inc ecx
cmp word [eax], 0
jne 0x37f9d920
movzx eax, cx
movzx ecx, ax
lea esi, [edi + ecx*2]
mov ecx, dword [esp + 0x18]
cmp esi, ecx
jbe 0x37f9d948
sub ecx, edi
sar ecx, 1
movzx eax, cx
movzx esi, ax
add esi, esi
push esi
push edx
push edi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add edi, esi
movzx esi, word [ebp + ebx*2]
mov eax, dword [esp + 0x1c]
shl byte [esp + 0x3c], 1
dec eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x37f9d8de
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x38], edx
mov edx, dword [esp + 0x40]
jb 0x37f9d8bd
mov ecx, dword [esp + 0x10]
movzx ebx, word [esp + 0x20]
movzx eax, si
lea esi, [eax + eax*2]
lea esi, [ebx + esi*2]
cmp word [ebp + esi*2], 0
jne 0x37f9d9f7
lea eax, [eax + eax*2]
lea ebp, [ebp + eax*4 + 4]
mov eax, ebp
xor ecx, ecx
cmp word [eax], cx
jne 0x37f9d9b5
lea eax, [ecx + 1]
jmp 0x37f9d9c8
add eax, 2
cmp cx, 4
jae 0x37f9d9c5
inc ecx
cmp word [eax], 0
jne 0x37f9d9b5
movzx eax, cx
movzx ecx, ax
lea edx, [edi + ecx*2]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jbe 0x37f9d9dd
sub ecx, edi
sar ecx, 1
movzx eax, cx
movzx esi, ax
add esi, esi
push esi
push ebp
push edi
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
add esp, 0xc
add edi, esi
sub edi, 2
cmp edi, dword [esp + 0x28]
jb 0x37f9da06
cmp word [edi], 0
je 0x37f9d9f7
add edi, 2
cmp byte [esp + 0x34], 0
je 0x37f9da42
xor eax, eax
test byte [esp + 0x48], 4
mov word [edi], ax
je 0x37f9da32
sub edi, edx
sar edi, 1
dec edi
mov word [edx], di
movzx ax, byte [edx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x20
mov eax, edi
pop edi
pop esi
sub eax, edx
pop ebp
sar eax, 1
pop ebx
add esp, 0x1c
ret 0x20
sub edi, ecx
sar edi, 1
test byte [esp + 0x48], 8
je 0x37f9da8a
cmp ecx, edx
jne 0x37f9da55
xor ebx, ebx
jmp 0x37f9da71
mov eax, dword [esp + 0x14]
push 0
push 0
push eax
push edx
push edi
push ecx
mov ecx, dword [esp + 0x48]
push ecx
call fcn.37f9bc18
mov ecx, dword [esp + 0x10]
mov ebx, eax
cmp word [esp + 0x44], 0
je 0x37f9da80
cmp ebx, dword [esp + 0x14]
jne 0x37f9da80
dec ebx
mov edx, dword [esp + 0x40]
mov byte [ebx + edx], 0
jmp 0x37f9dacb
lea eax, [edx + 1]
cmp ecx, eax
jne 0x37f9da95
xor ebx, ebx
jmp 0x37f9dab1
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x40]
push edi
push ecx
push eax
call fcn.37f9bc18
mov ecx, dword [esp + 0x10]
mov ebx, eax
cmp word [esp + 0x44], 0
je 0x37f9dac0
cmp ebx, dword [esp + 0x14]
jne 0x37f9dac0
dec ebx
mov eax, dword [esp + 0x40]
mov byte [eax], bl
mov byte [ebx + eax + 1], 0
mov edx, dword [esp + 0x4c]
push edx
push ecx
call fcn.37f8cd82
pop edi
pop esi
pop ebp
mov ax, bx
pop ebx
add esp, 0x1c
ret 0x20