Function at 0x401c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x436d4a
push eax
mov eax, dword [0x448e40]
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 0x448e28
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x448e40], ebx
jne 0x401f8a
push ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.00404ae0
mov ebp, 0x43a2d4
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.004043d0
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.00404d10
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], 0x43a2d4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 3
call fcn.00404d10
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], 0x43a2d4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 4
call fcn.00404d10
xor eax, eax
jmp 0x401f9a
push ebp
lea ecx, [esp + 0x14]
call fcn.00404320
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebp
call fcn.0040b3a0
mov ecx, dword [0x448f54]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x2ac], 5
call fcn.00405770
mov esi, eax
mov edx, dword [0x448b98]
push ebx
mov ecx, 0x448b98
mov byte [esp + 0x2ac], 6
call dword [edx + 4]
push esi
mov ecx, 0x448b98
call fcn.00404370
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a8], 5
call fcn.004150e0
push 0x448b98
lea ecx, [esp + 0x24]
call fcn.00404430
mov dword [esp + 0x20], 0x43a2e4
mov ecx, 5
mov esi, 0x444198
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.00409110
add esp, 8
lea ecx, [esp + 0x20]
push 0x10
push eax
call fcn.004043d0
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.0040b4a0
lea ecx, [esp + 0x5c]
call fcn.0040b620
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.0040b7d0
cmp dword [esp + 0x18], ebx
jne 0x401ec4
mov esi, 0x43a2d4
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 8
call fcn.00404d10
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], 0x43a2d0
mov byte [esp + 0x2a8], 1
call fcn.0040b440
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 9
call fcn.00416b30
cmp eax, ebx
je 0x401ebd
push eax
call fcn.0041a6b3
add esp, 4
xor eax, eax
jmp 0x401f9a
mov eax, dword [esp + 0x14]
push ebp
push eax
mov ecx, 0x448918
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00415530
mov ecx, dword [0x448f54]
lea edx, [esp + 0x34]
push edx
call fcn.00405870
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, 0x448bb0
push esi
call fcn.004155f0
mov esi, 0x43a2d4
mov dword [esp + 0x34], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a8], 0xb
call fcn.00404d10
mov dword [0x448e40], 1
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 0xc
call fcn.00404d10
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], 0x43a2d0
mov byte [esp + 0x2a8], 1
call fcn.0040b440
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], 0xd
call fcn.00416b30
cmp eax, ebx
je 0x401f8a
push eax
call fcn.0041a6b3
add esp, 4
push 0x448e28
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