Function at 0x1004a130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ff480
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1012c610]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x1012c610]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
movzx edi, word [ebp + 8]
mov eax, dword [0x10133870]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push edi
mov esi, ecx
push eax
mov dword [esp + 0x3c], esi
call ebx
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x1004a1b0
mov ecx, dword [0x10133870]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004a1b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x2c], eax
mov edx, dword [0x10133870]
push 5
push edi
push edx
call ebx
test eax, eax
je 0x1004a512
push eax
mov eax, dword [0x10133870]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004a509
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1004a509
movzx ecx, word [eax + 2]
xor ebx, ebx
mov edx, 0xffff
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
je 0x1004a208
lea ecx, [eax + 8]
movzx edi, word [ecx]
mov ecx, eax
mov dword [esp + 0x3c], edi
call fcn.10043620
mov ebx, eax
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
lea ecx, [esp + 0x38]
call fcn.10054800
mov ecx, dword [esp + 0x34]
xor edx, edx
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
cmp ax, di
jae 0x1004a512
cmp dword [esp + 0x1c], 0
je 0x1004a256
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x1004a25d
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x1004a480
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x18], 0
call fcn.1004aba0
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], eax
cmp edi, eax
je 0x1004a2d8
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1004a4dc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1004a4b9
mov ecx, dword [esp + 0x10]
push edi
push ecx
push edi
push eax
call fcn.1001d070
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea ecx, [esp + 0x24]
call fcn.10020ec0
lea eax, [esp + 0x24]
mov byte [esp + 0x60], 1
mov esi, dword [esp + 0x14]
push eax
call fcn.10043d80
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
js 0x1004a45d
push 0
lea ecx, [esp + 0x1c]
call fcn.10054800
call fcn.10048fd0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1004a328
movzx eax, word [ebx + 0xc]
lea ecx, [ebx + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x1004a333
movzx eax, word [ebx + 8]
lea edx, [ebx + 0x12]
mov dword [esp + 0x10], edx
movsx edx, ax
mov dword [esp + 0x40], edx
test esi, esi
je 0x1004a344
movzx eax, word [ebx + 0xe]
jmp 0x1004a348
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x44], ecx
test esi, esi
je 0x1004a359
movzx eax, word [ebx + 0x10]
jmp 0x1004a35d
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x48], eax
test esi, esi
je 0x1004a36e
movzx eax, word [ebx + 0x12]
jmp 0x1004a372
movzx eax, word [ebx + 0xe]
movsx edx, ax
add edx, ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x1004a39d
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
jmp 0x1004a3a5
movzx eax, word [ebx + 0x10]
mov esi, dword [ebx]
xor edi, edi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.10054800
push edi
or esi, 0x10000
push esi
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.10054800
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.1004a730
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1004a454
cmp dword [esp + 0x1c], 0
je 0x1004a3fa
mov eax, dword [ebx]
test eax, eax
je 0x1004a3fa
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.1003b1e0
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.1004a790
mov dword [esp + 0x10], eax
test eax, eax
js 0x1004a4e6
cmp word [esp + 0x28], 0
jne 0x1004a430
xor eax, eax
jmp 0x1004a434
mov eax, dword [esp + 0x20]
push 0x13
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x1004a45d
call fcn.1001d260
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
call fcn.100042f0
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a496
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1004a496
test dx, dx
je 0x1004a496
mov ecx, dword [esp + 0x20]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
mov eax, ebx
call fcn.100436c0
mov edx, dword [esp + 0x28]
inc edx
mov ebx, eax
mov dword [esp + 0x28], edx
cmp dx, word [esp + 0x3c]
jb 0x1004a247
jmp 0x1004a512
call fcn.1001d260
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a512
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1004a512
mov dword [esp + 0x10], 0x8007000e
jmp 0x1004a4ef
lea ecx, [esp + 0x24]
call fcn.100042f0
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a512
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1004a512
call fcn.1001d260
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.1007dda4
mov esp, ebp
pop ebp
ret 4