Function at 0x4121d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493990
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4b14c4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4b14c4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
movzx edi, word [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push edi
push dword [0x4b4fc8]
mov dword [esp + 0x40], ecx
call esi
and dword [esp + 0x30], 0
and dword [esp + 0x14], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x412251
push eax
push dword [0x4b4fc8]
call ebx
test eax, eax
je 0x412251
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x30], eax
push 5
push edi
push dword [0x4b4fc8]
call esi
test eax, eax
je 0x4125a3
push eax
push dword [0x4b4fc8]
call ebx
test eax, eax
je 0x41259a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41259a
movzx esi, word [eax + 2]
mov ecx, 0xffff
xor ebx, ebx
mov edx, ecx
cmp si, dx
sete bl
lea edx, [eax + 0x10]
mov dword [esp + 0x20], ebx
cmp si, cx
je 0x4122a6
lea edx, [eax + 8]
movzx esi, word [edx]
mov ecx, eax
mov dword [esp + 0x38], esi
call fcn.00410889
mov ebx, eax
mov eax, dword [esp + 0x34]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
xor eax, eax
cmp ax, si
jae 0x4125a3
cmp dword [esp + 0x20], 0
je 0x4122e5
mov edi, dword [ebx + 0x14]
jmp 0x4122e9
movzx edi, word [ebx + 0x10]
xor ecx, ecx
lea eax, [ebx + 0x18]
cmp dword [esp + 0x20], ecx
jne 0x4122f7
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x412520
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x41232c
movzx edx, word [eax]
mov ecx, dword [eax + 4]
add eax, 2
movzx esi, word [eax]
mov dword [esp + 0x2c], eax
add eax, 6
cmp edx, edi
je 0x4123cd
add eax, ecx
jne 0x41230d
xor esi, esi
and dword [esp + 0x1c], 0
and dword [esp + 0x60], 0
test esi, esi
je 0x412382
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x412571
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41255b
push esi
push dword [esp + 0x1c]
push esi
push eax
call fcn.004027b9
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
mov byte [esp + 0x60], 1
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00407333
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
js 0x412501
and dword [esp + 0x14], 0
call fcn.0040b5ad
mov esi, dword [esp + 0x20]
lea eax, [ebx + 0x18]
test esi, esi
jne 0x4123bf
lea eax, [ebx + 0x12]
mov dword [esp + 0x2c], eax
test esi, esi
je 0x4123eb
movzx eax, word [ebx + 0xc]
jmp 0x4123ef
mov eax, 0x378
cmp si, ax
je 0x41232c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
lea esi, [ecx + 6]
jmp 0x41232e
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [esp + 0x40], edx
test esi, esi
je 0x412400
movzx eax, word [ebx + 0xe]
jmp 0x412404
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x44], ecx
test esi, esi
je 0x412415
movzx eax, word [ebx + 0x10]
jmp 0x412419
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x48], eax
test esi, esi
je 0x41242a
movzx eax, word [ebx + 0x12]
jmp 0x41242e
movzx eax, word [ebx + 0xe]
mov edi, dword [esp + 0x34]
cwde
add eax, ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x412450
mov edx, dword [ebx + 0x14]
jmp 0x412454
movzx edx, word [ebx + 0x10]
test esi, esi
je 0x41245d
mov esi, dword [ebx + 4]
jmp 0x41245f
xor esi, esi
cmp dword [esp + 0x20], 0
je 0x41246b
mov eax, dword [ebx + 8]
jmp 0x41246d
mov eax, dword [ebx]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
or eax, 0x10000
push eax
push ecx
mov dword [ecx], edx
mov eax, esp
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], esp
mov dword [eax], ecx
push dword [edi + 4]
lea eax, [esp + 0x28]
push eax
call fcn.00410660
mov esi, dword [esp + 0x14]
xor edi, edi
cmp esi, edi
je 0x4124f8
cmp dword [esp + 0x20], edi
je 0x4124b5
mov eax, dword [ebx]
cmp eax, edi
je 0x4124b5
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x18]
lea ecx, [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x34]
call fcn.004106ae
mov dword [esp + 0x14], eax
cmp eax, edi
jl 0x41257b
cmp word [esp + 0x24], di
jne 0x4124e1
mov dword [esp + 0x28], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [esp + 0x3c]
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x28], esi
jmp 0x412501
call fcn.00402766
mov dword [esp + 0x14], eax
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412537
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x412537
cmp word [esp + 0x24], cx
je 0x412537
push 2
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x28], eax
push dword [esp + 0x20]
mov eax, ebx
call fcn.00410829
inc dword [esp + 0x28]
mov ebx, eax
mov ax, word [esp + 0x28]
pop ecx
cmp ax, word [esp + 0x38]
jb 0x4122d9
jmp 0x4125a3
call fcn.00402766
mov dword [esp + 0x14], eax
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
jmp 0x412590
mov dword [esp + 0x14], 0x8007000e
jmp 0x412564
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4125a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4125a3
call fcn.00402766
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00474c58
mov esp, ebp
pop ebp
ret 4