Function at 0x401220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42649a
push eax
mov eax, dword [0x432f4c]
mov dword fs:[0], esp
sub esp, 0x284
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
jne 0x40152d
push ebx
push ebx
lea ecx, [esp + 0x18]
call fcn.00402b10
mov eax, dword [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a4], ebx
mov dword [esp + 0x18], 0x428228
mov dword [esp + 0x24], ebx
call fcn.00402c70
xor ecx, ecx
xor esi, esi
mov edi, eax
push ebx
mov dword [esp + 0x2a0], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0xa
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
cmp ebp, ebx
jne 0x4012cc
mov dword [esp + 0x10], 0x428228
lea ecx, [esp + 0x10]
mov dword [esp + 0x29c], 2
call fcn.0040b850
xor eax, eax
jmp 0x401532
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x401305
mov dword [esp + 0x10], 0x428228
lea ecx, [esp + 0x10]
mov dword [esp + 0x29c], 3
call fcn.0040b850
xor eax, eax
jmp 0x401532
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, ebx
jne 0x401335
mov dword [esp + 0x10], 0x428228
lea ecx, [esp + 0x10]
mov dword [esp + 0x29c], 4
call fcn.0040b850
xor eax, eax
jmp 0x401532
push esi
lea ecx, [esp + 0x14]
call fcn.00402330
lea ecx, [esp + 0x50]
mov dword [esp + 0x18], esi
call fcn.00404a50
push 0xffffffffffffffff
push str.serial
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a4], 5
call fcn.00402390
mov dword [esp + 0x30], 0x428230
lea ecx, [esp + 0x30]
push 1
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [0x432f58]
push edx
mov byte [esp + 0x2a8], 6
call fcn.00402d80
lea ecx, [esp + 0x30]
mov byte [esp + 0x29c], 8
call fcn.00402270
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
mov edi, eax
push eax
mov eax, dword [esp + 0x24]
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
push 4
push edi
push ecx
lea ecx, [esp + 0x5c]
call fcn.00404b50
lea ecx, [esp + 0x50]
call fcn.00404cd0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
push esi
push ecx
push ebp
lea ecx, [esp + 0x5c]
call fcn.00404e80
cmp dword [esp + 0x18], ebx
jne 0x40144d
mov esi, 0x428228
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 9
call fcn.0040b850
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], 0x428238
mov byte [esp + 0x29c], 1
call fcn.00404af0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x29c], 0xa
call fcn.00402380
cmp eax, ebx
je 0x401446
push eax
call fcn.0040cb32
add esp, 4
xor eax, eax
jmp 0x401532
mov eax, dword [esp + 0x14]
push esi
push eax
mov ecx, 0x432b00
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0040aaa0
mov ecx, dword [0x432f58]
lea edx, [esp + 0x40]
push edx
call fcn.00402cc0
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x2a0], 0xb
call dword [eax + 4]
mov esi, dword [esi + 4]
mov ecx, 0x432d28
push esi
call fcn.0040ab60
mov esi, 0x428228
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x29c], 0xc
call fcn.00402380
cmp eax, ebx
je 0x4014c3
push eax
call fcn.0040cb32
add esp, 4
mov dword [0x432f4c], 1
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 0xd
call fcn.00402380
cmp eax, ebx
je 0x4014ef
push eax
call fcn.0040cb32
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], 0x428238
mov byte [esp + 0x29c], 1
call fcn.00404af0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x29c], 0xe
call fcn.00402380
cmp eax, ebx
je 0x40152d
push eax
call fcn.0040cb32
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret