Function at 0x412130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b340
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x437454]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x437454]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
movzx esi, word [ebp + 8]
mov eax, dword [0x43a014]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push esi
mov ebx, ecx
push eax
mov dword [esp + 0x40], ebx
call edi
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x4121b0
mov ecx, dword [0x43a014]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4121b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x30], eax
mov edx, dword [0x43a014]
push 5
push esi
push edx
call edi
test eax, eax
je 0x412505
push eax
mov eax, dword [0x43a014]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4124fc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4124fc
movzx ecx, word [eax + 2]
mov dword [esp + 0x20], eax
xor eax, eax
mov edx, 0xffff
cmp cx, dx
sete al
cmp cx, dx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x10]
je 0x412210
lea ecx, [eax + 8]
movzx esi, word [ecx]
mov ecx, eax
mov dword [esp + 0x3c], esi
call fcn.00409c00
mov edi, eax
mov eax, dword [ebx + 4]
push 5
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_GetWindow]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
cmp cx, si
jae 0x412505
jmp 0x412254
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x24], 0
je 0x412263
mov ecx, dword [edi + 0x14]
lea eax, [edi + 0x18]
jmp 0x41226a
movzx ecx, word [edi + 0x10]
lea eax, [edi + 0x12]
cmp word [eax], 0x7b
jne 0x412473
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
mov ebx, ecx
mov dword [esp + 0x1c], 0
call fcn.00410fc0
mov ebx, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], eax
cmp ebx, eax
je 0x4122e9
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4124d1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4124ae
mov ecx, dword [esp + 0x18]
push eax
mov eax, ebx
mov edx, ebx
call fcn.00406880
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor eax, eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
mov esi, dword [esp + 0x14]
push ecx
call fcn.0040a040
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
js 0x41244e
mov dword [esp + 0x10], 0
call fcn.0040e7e0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x412331
movzx eax, word [edi + 0xc]
lea edx, [edi + 0x18]
mov dword [esp + 0x20], edx
jmp 0x41233c
lea eax, [edi + 0x12]
mov dword [esp + 0x20], eax
movzx eax, word [edi + 8]
movsx edx, ax
mov dword [esp + 0x40], edx
test esi, esi
je 0x41234d
movzx eax, word [edi + 0xe]
jmp 0x412351
movzx eax, word [edi + 0xa]
movsx ecx, ax
mov dword [esp + 0x44], ecx
test esi, esi
je 0x412362
movzx eax, word [edi + 0x10]
jmp 0x412366
movzx eax, word [edi + 0xc]
cwde
add eax, edx
mov dword [esp + 0x48], eax
test esi, esi
je 0x412377
movzx eax, word [edi + 0x12]
jmp 0x41237b
movzx eax, word [edi + 0xe]
mov ebx, dword [esp + 0x34]
movsx edx, ax
add edx, ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x54], edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x4123a6
mov esi, dword [edi + 0x14]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
jmp 0x4123ae
movzx esi, word [edi + 0x10]
mov eax, dword [edi]
xor edx, edx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
or eax, 0x10000
push eax
push ecx
mov eax, esp
mov dword [ecx], esi
lea edx, [esp + 0x50]
mov dword [eax], edx
mov eax, dword [ebx + 4]
mov dword [esp + 0x48], esp
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00413010
mov esi, dword [esp + 0x10]
test esi, esi
je 0x412445
cmp dword [esp + 0x24], 0
je 0x4123f6
mov edi, dword [edi]
test edi, edi
je 0x4123f6
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00413450
mov dword [esp + 0x10], eax
test eax, eax
js 0x4124db
cmp word [esp + 0x28], 0
jne 0x412425
xor eax, eax
jmp 0x412429
mov eax, dword [esp + 0x1c]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
jmp 0x41244e
call fcn.00406ad0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412489
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x412489
test dx, dx
je 0x412489
mov ecx, dword [esp + 0x1c]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x24]
mov eax, edi
call fcn.00409ca0
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
cmp dx, word [esp + 0x3c]
jb 0x412250
jmp 0x412505
call fcn.00406ad0
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412505
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x412505
mov dword [esp + 0x10], 0x8007000e
jmp 0x4124e2
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412505
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x412505
call fcn.00406ad0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
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.0041884c
mov esp, ebp
pop ebp
ret 4