Function at 0x1004a480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ff4a0
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 0x1004a500
mov ecx, dword [0x10133870]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004a500
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 0x1004a862
push eax
mov eax, dword [0x10133870]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004a859
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1004a859
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 0x1004a558
lea ecx, [eax + 8]
movzx edi, word [ecx]
mov ecx, eax
mov dword [esp + 0x3c], edi
call fcn.100438b0
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.100748c0
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 0x1004a862
cmp dword [esp + 0x1c], 0
je 0x1004a5a6
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x1004a5ad
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x1004a7d0
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x18], 0
call fcn.1004aef0
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], eax
cmp edi, eax
je 0x1004a628
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1004a82c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1004a809
mov ecx, dword [esp + 0x10]
push edi
push ecx
push edi
push eax
call fcn.1001d0c0
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.100212a0
lea eax, [esp + 0x24]
mov byte [esp + 0x60], 1
mov esi, dword [esp + 0x14]
push eax
call fcn.10044010
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
js 0x1004a7ad
push 0
lea ecx, [esp + 0x1c]
call fcn.100748c0
call fcn.10049270
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1004a678
movzx eax, word [ebx + 0xc]
lea ecx, [ebx + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x1004a683
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 0x1004a694
movzx eax, word [ebx + 0xe]
jmp 0x1004a698
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x44], ecx
test esi, esi
je 0x1004a6a9
movzx eax, word [ebx + 0x10]
jmp 0x1004a6ad
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x48], eax
test esi, esi
je 0x1004a6be
movzx eax, word [ebx + 0x12]
jmp 0x1004a6c2
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 0x1004a6ed
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
jmp 0x1004a6f5
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.100748c0
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.100748c0
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.1004aa80
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1004a7a4
cmp dword [esp + 0x1c], 0
je 0x1004a74a
mov eax, dword [ebx]
test eax, eax
je 0x1004a74a
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.10039c20
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.1004aae0
mov dword [esp + 0x10], eax
test eax, eax
js 0x1004a836
cmp word [esp + 0x28], 0
jne 0x1004a780
xor eax, eax
jmp 0x1004a784
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 0x1004a7ad
call fcn.1001d2b0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
call fcn.100042e0
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a7e6
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1004a7e6
test dx, dx
je 0x1004a7e6
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.10043950
mov edx, dword [esp + 0x28]
inc edx
mov ebx, eax
mov dword [esp + 0x28], edx
cmp dx, word [esp + 0x3c]
jb 0x1004a597
jmp 0x1004a862
call fcn.1001d2b0
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a862
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1004a862
mov dword [esp + 0x10], 0x8007000e
jmp 0x1004a83f
lea ecx, [esp + 0x24]
call fcn.100042e0
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a862
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1004a862
call fcn.1001d2b0
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.1007dd84
mov esp, ebp
pop ebp
ret 4