Function at 0x522630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x522638
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405724
xor eax, eax
push ebp
push 0x522a30
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.004dfd40
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 8]
call fcn.004078a8
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.00405c7c
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x28]
call fcn.004d7abc
lea ecx, [ebp - 0x50]
mov edx, 0x522a44
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
call fcn.0040552c
mov edx, 0x522a50
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, eax
lea ecx, [ebp - 0x54]
mov edx, 0x522a60
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x14]
call fcn.0040552c
lea ecx, [ebp - 0x58]
mov edx, 0x522a70
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x18]
call fcn.0040552c
mov edx, 0x522a84
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x34], eax
mov edx, 0x522a98
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x38], eax
mov edx, 0x522ab4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x5c]
mov edx, 0x522ac4
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
call fcn.0040552c
lea ecx, [ebp - 0x60]
mov edx, 0x522adc
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x24]
call fcn.0040552c
lea ecx, [ebp - 0x64]
mov edx, 0x522af0
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x20]
call fcn.0040552c
mov edx, 0x522b0c
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, eax
mov edx, 0x522b28
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x40], eax
mov edx, 0x522b58
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x2c]
mov eax, 0x522b7c
call fcn.004d7abc
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x10]
call fcn.00405c7c
mov ecx, dword [ebp - 0x68]
mov edx, 0x522a44
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0x50]
mov eax, esi
cdq
push edx
push eax
mov edx, 0x522a50
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.00405c7c
mov ecx, dword [ebp - 0x6c]
mov edx, 0x522a60
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x50]
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0x18]
call fcn.00405c7c
mov ecx, dword [ebp - 0x70]
mov edx, 0x522a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x50]
mov eax, dword [ebp - 0x34]
cdq
push edx
push eax
mov edx, 0x522a84
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x38]
cdq
push edx
push eax
mov edx, 0x522a98
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x14]
call fcn.00405c7c
mov ecx, dword [ebp - 0x74]
mov edx, 0x522b88
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x50]
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x3c]
call fcn.0040a964
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
call fcn.00405c7c
mov ecx, dword [ebp - 0x78]
mov edx, 0x522ab4
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x50]
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x1c]
call fcn.00405c7c
mov ecx, dword [ebp - 0x80]
mov edx, 0x522ac4
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x50]
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x24]
call fcn.00405c7c
mov ecx, dword [ebp - 0x84]
mov edx, 0x522adc
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x50]
mov eax, dword [ebp - 0x40]
cdq
push edx
push eax
mov edx, 0x522b28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x44]
cdq
push edx
push eax
mov edx, 0x522b58
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x20]
call fcn.00405c7c
mov ecx, dword [ebp - 0x88]
mov edx, 0x522af0
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
call dword [esi + 0x50]
mov eax, ebx
cdq
push edx
push eax
mov edx, 0x522b0c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x94]
push eax
mov cl, 1
mov dl, 1
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x9c]
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
call fcn.0040552c
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004dfbb4
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0xc]
mov edx, 0x522ba0
call fcn.004055bc
push 0x522ba4
push 0x522ba4
mov eax, dword [0x5557f8]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x5229b0
push ebx
mov eax, dword [0x5557f8]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
je 0x5229ba
push ebx
mov eax, dword [0x5557f8]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x5229ba
push eax
call sub.kernel32.dll_LockResource
test eax, eax
je 0x5229ba
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.0051f5c4
mov eax, 0x522bb4
call fcn.00533b70
jmp 0x5229ba
mov eax, 0x522bdc
call fcn.00533b70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522a37
lea eax, [ebp - 0x94]
call fcn.00405ab0
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.004052c8
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00405ac8
lea eax, [ebp - 0x7c]
call fcn.004052a4
lea eax, [ebp - 0x78]
mov edx, 0xc
call fcn.00405ac8
lea eax, [ebp - 0x48]
call fcn.004052a4
lea eax, [ebp - 0x2c]
mov edx, dword [0x4d73e0]
mov ecx, 2
call fcn.004060f0
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.004052c8
ret