Function at 0x4096d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x43a004]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 1
push 2
push 0x436ba4
push edi
or esi, 0xffffffff
call fcn.0041f3ea
add esp, 0xc
push 0
test eax, eax
jne 0x40974f
mov dword [esp + 0x14], eax
mov edx, 0x277
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0041d0b0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x409ad1
test eax, eax
je 0x409ad1
push eax
push ecx
push ebx
call fcn.0041ce60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push 0
lea edx, [esp + 0x1c]
mov dword [0x43bbd4], 0
mov ecx, edi
call fcn.00411e00
xor edi, edi
add esp, 8
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edi
jle 0x4097b5
nop word [eax + eax]
push 0x436c08
push dword [ecx + edi*4]
call fcn.0041f4c2
mov ecx, dword [esp + 0x18]
add esp, 8
neg eax
sbb eax, eax
and ebx, eax
mov eax, dword [ecx + edi*4]
cmp word [eax], 0x2f
je 0x4097a9
cmp esi, 0xffffffff
cmove esi, edi
inc edi
cmp edi, dword [esp + 0x14]
jl 0x409780
cmp esi, 0xffffffff
jne 0x4097d1
call fcn.00411600
push eax
push 0x436c10
push 0x44a060
call fcn.0041cbe0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test ebx, ebx
jne 0x409802
test ecx, ecx
je 0x409ad1
mov eax, dword [ecx]
mov esi, ecx
test eax, eax
je 0x4097fc
push eax
call fcn.0041f3e5
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x4097e5
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x409ac9
cmp esi, 0xffffffff
jne 0x40995b
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44a1c0]
sub eax, 0
je 0x409833
sub eax, 1
je 0x40982c
sub eax, 1
jne 0x409833
mov ecx, 0x276
jmp 0x409838
mov ecx, 0x275
jmp 0x409838
mov ecx, 0x274
movzx eax, word [0x44a1bc]
push eax
push eax
push ecx
push 0x44a060
call fcn.0041cd80
add esp, 0x10
lea ecx, [esp + 0x18]
mov edx, 0x28
call fcn.00407900
cmp word [esp + 0x18], 0
je 0x4098a5
lea ecx, [esp + 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409870
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x16], 0x20
jae 0x4098a5
lea ecx, [ecx*2 - 2]
cmp ecx, 0x50
jae 0x409ae5
xor eax, eax
mov word [esp + ecx + 0x18], ax
cmp word [esp + 0x18], ax
jne 0x409865
lea ecx, [esp + 0x18]
call fcn.00409480
test eax, eax
jne 0x40992b
push eax
push 0x15
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x409811
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409811
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, 4
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
lea eax, [eax + 2]
sub edx, 1
jne 0x4098e3
movzx esi, word [eax]
lea edi, [eax + 2]
test edi, edi
je 0x409811
test esi, esi
je 0x409811
push 0x44a028
call ebx
push esi
push edi
push 0x44a020
call dword [0x44a020]
push 0x44a028
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x409811
mov edi, dword [esp + 0x10]
test edi, edi
je 0x409ad1
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x409ac8
push eax
call fcn.0041f3e5
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x409943
jmp 0x409ac8
mov ecx, dword [ecx + esi*4]
call fcn.00409480
test eax, eax
jne 0x409aa5
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x15
push 6
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x4099db
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4099db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, 4
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
lea eax, [eax + 2]
sub edx, 1
jne 0x4099a0
movzx esi, word [eax]
lea edi, [eax + 2]
test edi, edi
je 0x4099db
test esi, esi
je 0x4099db
push 0x44a028
call ebx
push esi
push edi
push 0x44a020
call dword [0x44a020]
push 0x44a028
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x44a1c0]
sub eax, 0
je 0x4099fd
sub eax, 1
je 0x4099f6
sub eax, 1
jne 0x4099fd
mov ecx, 0x276
jmp 0x409a02
mov ecx, 0x275
jmp 0x409a02
mov ecx, 0x274
movzx eax, word [0x44a1bc]
push eax
push eax
push ecx
push 0x44a060
call fcn.0041cd80
add esp, 0x10
lea ecx, [esp + 0x18]
mov edx, 0x28
call fcn.00407900
cmp word [esp + 0x18], 0
je 0x409a6c
nop
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409a37
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x20
jae 0x409a6c
lea eax, [eax*2 - 2]
cmp eax, 0x50
jae 0x409ae5
xor ecx, ecx
mov word [esp + eax + 0x18], cx
cmp word [esp + 0x18], cx
jne 0x409a30
lea ecx, [esp + 0x18]
call fcn.00409480
test eax, eax
je 0x409971
mov edi, dword [esp + 0x10]
test edi, edi
je 0x409ad1
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x409ac8
nop dword [eax]
push eax
call fcn.0041f3e5
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x409a90
jmp 0x409ac8
mov edi, dword [esp + 0x10]
test edi, edi
je 0x409ad1
mov eax, dword [edi]
mov esi, edi
test eax, eax
je 0x409ac8
push eax
call fcn.0041f3e5
mov eax, dword [esi + 4]
lea esi, [esi + 4]
add esp, 4
test eax, eax
jne 0x409ab5
push edi
call fcn.0041f3e5
add esp, 4
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
call fcn.0041d35b
int3