Function at 0x10049f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ff440
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1012c620]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x1012c620]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
movzx edi, word [ebp + 8]
mov eax, dword [0x10133890]
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 0x10049fb0
mov ecx, dword [0x10133890]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10049fb0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x2c], eax
mov edx, dword [0x10133890]
push 5
push edi
push edx
call ebx
test eax, eax
je 0x1004a312
push eax
mov eax, dword [0x10133890]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004a309
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1004a309
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 0x1004a008
lea ecx, [eax + 8]
movzx edi, word [ecx]
mov ecx, eax
mov dword [esp + 0x3c], edi
call fcn.10043410
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.10021cb0
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 0x1004a312
cmp dword [esp + 0x1c], 0
je 0x1004a056
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x1004a05d
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x1004a280
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x18], 0
call fcn.1004a9a0
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], eax
cmp edi, eax
je 0x1004a0d8
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1004a2dc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1004a2b9
mov ecx, dword [esp + 0x10]
push edi
push ecx
push edi
push eax
call fcn.1001d280
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.1001c420
lea eax, [esp + 0x24]
mov byte [esp + 0x60], 1
mov esi, dword [esp + 0x14]
push eax
call fcn.10043b70
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
js 0x1004a25d
push 0
lea ecx, [esp + 0x1c]
call fcn.10021cb0
call fcn.10048dc0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1004a128
movzx eax, word [ebx + 0xc]
lea ecx, [ebx + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x1004a133
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 0x1004a144
movzx eax, word [ebx + 0xe]
jmp 0x1004a148
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x44], ecx
test esi, esi
je 0x1004a159
movzx eax, word [ebx + 0x10]
jmp 0x1004a15d
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x48], eax
test esi, esi
je 0x1004a16e
movzx eax, word [ebx + 0x12]
jmp 0x1004a172
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 0x1004a19d
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
jmp 0x1004a1a5
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.10021cb0
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.10021cb0
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.1004a530
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1004a254
cmp dword [esp + 0x1c], 0
je 0x1004a1fa
mov eax, dword [ebx]
test eax, eax
je 0x1004a1fa
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.10007dc0
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.1004a590
mov dword [esp + 0x10], eax
test eax, eax
js 0x1004a2e6
cmp word [esp + 0x28], 0
jne 0x1004a230
xor eax, eax
jmp 0x1004a234
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 0x1004a25d
call fcn.1001d470
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
call fcn.100042d0
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a296
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1004a296
test dx, dx
je 0x1004a296
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.100434b0
mov edx, dword [esp + 0x28]
inc edx
mov ebx, eax
mov dword [esp + 0x28], edx
cmp dx, word [esp + 0x3c]
jb 0x1004a047
jmp 0x1004a312
call fcn.1001d470
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a312
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x1004a312
mov dword [esp + 0x10], 0x8007000e
jmp 0x1004a2ef
lea ecx, [esp + 0x24]
call fcn.100042d0
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004a312
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x1004a312
call fcn.1001d470
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.1007dd64
mov esp, ebp
pop ebp
ret 4