Function at 0x401c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43556a
push eax
mov eax, dword [0x446da8]
mov dword fs:[0], esp
sub esp, 0x290
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x401f95
push 0x446d90
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x446da8], ebx
jne 0x401f8a
push ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.00404ad0
mov ebp, 0x4392ac
push ebx
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2b0], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebx
call fcn.004043e0
push ebx
mov dword [esp + 0x2ac], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push 0xa
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
jne 0x401cf6
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 2
call fcn.00404ab0
xor eax, eax
jmp 0x401f9a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x401d2f
mov dword [esp + 0x10], 0x4392ac
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 3
call fcn.00404ab0
xor eax, eax
jmp 0x401f9a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esp + 0x30], eax
jne 0x401d61
mov dword [esp + 0x10], 0x4392ac
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 4
call fcn.00404ab0
xor eax, eax
jmp 0x401f9a
push ebp
lea ecx, [esp + 0x14]
call fcn.00404330
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebp
call fcn.0040b290
mov ecx, dword [0x446ebc]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x2ac], 5
call fcn.00405760
mov esi, eax
mov edx, dword [0x446b00]
push ebx
mov ecx, 0x446b00
mov byte [esp + 0x2ac], 6
call dword [edx + 4]
push esi
mov ecx, 0x446b00
call fcn.00404380
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a8], 5
call fcn.00404dd0
push 0x446b00
lea ecx, [esp + 0x24]
call fcn.00404440
mov dword [esp + 0x20], 0x4392bc
mov ecx, 5
mov esi, 0x442188
lea edi, [esp + 0x44]
lea eax, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push 0x15
push eax
mov byte [esp + 0x2b0], 7
movsb byte es:[edi], byte [esi]
call fcn.00409000
add esp, 8
lea ecx, [esp + 0x20]
push 0x10
push eax
call fcn.004043e0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
mov esi, eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
push 4
push esi
push eax
lea ecx, [esp + 0x68]
call fcn.0040b390
lea ecx, [esp + 0x5c]
call fcn.0040b510
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x14]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push ebp
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.0040b6c0
cmp dword [esp + 0x18], ebx
jne 0x401ec4
mov esi, 0x4392ac
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 8
call fcn.00404ab0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], 0x4392a8
mov byte [esp + 0x2a8], 1
call fcn.0040b330
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 9
call fcn.00404100
cmp eax, ebx
je 0x401ebd
push eax
call fcn.00419423
add esp, 4
xor eax, eax
jmp 0x401f9a
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, 0x446880
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00413e40
mov ecx, dword [0x446ebc]
lea edx, [esp + 0x34]
push edx
call fcn.00405860
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x2ac], 0xa
call dword [eax + 4]
mov esi, dword [esi + 4]
mov ecx, 0x446b18
push esi
call fcn.00413f00
mov esi, 0x4392ac
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a8], 0xb
call fcn.00404ab0
mov dword [0x446da8], 1
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 0xc
call fcn.00404ab0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], 0x4392a8
mov byte [esp + 0x2a8], 1
call fcn.0040b330
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 0xd
call fcn.00404100
cmp eax, ebx
je 0x401f8a
push eax
call fcn.00419423
add esp, 4
push 0x446d90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret