Function at 0x422d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfafb
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x639490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x18]
call fcn.0040cb70
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x58], eax
push 2
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x20], 0
jne 0x422f29
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x7c], esp
push 0x60cbf3
call fcn.00406640
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x98], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004087a0
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x140]
push ecx
call fcn.00408800
add esp, 8
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x78]
push eax
push 0x60d350
lea ecx, [ebp - 0xe0]
push ecx
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 3
push str._ierr
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00408bc0
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 4
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x84], esp
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push eax
call fcn.00408c00
add esp, 0xc
mov dword [ebp - 0x94], eax
push 0
mov byte [ebp - 4], 8
call fcn.00456bc0
add esp, 0x34
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb0]
call fcn.004066d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe0]
call fcn.004066d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x140]
call fcn.004066d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.004066d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
jmp 0x4230b2
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x422f57
cmp dword [ebp - 0x1c], 0
ja 0x423088
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x8c], esp
push 0x60cbfe
call fcn.00406640
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x80], edx
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.004224a0
add esp, 8
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.00408800
add esp, 8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x40]
push eax
push str.FindResource_err
lea ecx, [ebp - 0xf8]
push ecx
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 0xc
push str._nResSize
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.00408bc0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0xd
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x88], esp
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push eax
call fcn.00408c00
add esp, 0xc
mov dword [ebp - 0x90], eax
push 0
mov byte [ebp - 4], 0x11
call fcn.00456bc0
add esp, 0x34
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xc8]
call fcn.004066d0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xf8]
call fcn.004066d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x128]
call fcn.004066d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.004066d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
jmp 0x4230b2
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00581e9f
mov esp, ebp
pop ebp
ret