Function at 0x4d1a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b3d0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx esi, word [ebp + 8]
mov eax, dword [0x552d10]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xf0
push esi
push eax
mov dword [ebp - 0x44], ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x24], ecx
cmp eax, ecx
je 0x4d1ac0
mov ecx, dword [0x552d10]
push eax
push ecx
call ebx
test eax, eax
je 0x4d1ac0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x4c], eax
mov edx, dword [0x552d10]
push 5
push esi
push edx
call edi
xor esi, esi
cmp eax, esi
je 0x4d1e67
push eax
mov eax, dword [0x552d10]
push eax
call ebx
cmp eax, esi
je 0x4d1e5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
je 0x4d1e5f
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 [ebp - 0x34], ebx
je 0x4d1b15
lea ecx, [eax + 8]
movzx edi, word [ecx]
push eax
mov dword [ebp - 0x54], edi
call fcn.004ccc90
mov ebx, eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
add esp, 4
push 5
push ecx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x38], eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x40], edx
cmp ax, di
jae 0x4d1e67
jmp 0x4d1b53
mov ebx, dword [ebp - 0x30]
cmp dword [ebp - 0x34], esi
je 0x4d1b60
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x4d1b67
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x4d1dc7
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x28]
push edx
push eax
push ecx
mov dword [ebp - 0x28], esi
call fcn.004ce4c0
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x4d1bd8
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4d1e1e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4d1dfe
mov ecx, dword [ebp - 0x28]
push edi
push ecx
push edi
push eax
call fcn.00448db0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp - 0x2c]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.004c3080
add esp, 8
mov dword [ebp - 0x24], eax
cmp eax, esi
jl 0x4d1da5
mov dword [ebp - 0x24], esi
call fcn.004ca430
cmp dword [ebp - 0x34], esi
je 0x4d1c13
mov edi, dword [ebp - 0x30]
movzx eax, word [edi + 0xc]
add ebx, 0x18
jmp 0x4d1c1f
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + 8]
add ebx, 0x12
mov edi, edx
mov esi, dword [ebp - 0x34]
movsx edx, ax
mov dword [ebp - 0x20], edx
test esi, esi
je 0x4d1c32
movzx eax, word [edi + 0xe]
jmp 0x4d1c36
movzx eax, word [edi + 0xa]
movsx ecx, ax
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x4d1c46
movzx eax, word [edi + 0x10]
jmp 0x4d1c4a
movzx eax, word [edi + 0xc]
cwde
add eax, edx
mov dword [ebp - 0x18], eax
test esi, esi
je 0x4d1c5a
movzx eax, word [edi + 0x12]
jmp 0x4d1c5e
movzx eax, word [edi + 0xe]
movsx edx, ax
add edx, ecx
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x4d1c86
mov esi, dword [edi + 0x14]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
jmp 0x4d1c8e
movzx esi, word [edi + 0x10]
mov eax, dword [edi]
xor edx, edx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push edx
mov edx, dword [ebp - 0x44]
or eax, 0x10000
push eax
push 0
push ecx
mov dword [ecx], esi
mov eax, esp
lea ecx, [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x50], esp
push eax
lea ecx, [ebp - 0x24]
call fcn.004ce5e0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4d1d98
cmp dword [ebp - 0x34], 0
je 0x4d1cda
mov eax, dword [edi]
test eax, eax
je 0x4d1cda
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x3c]
push ecx
push 0x531f7c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004c3570
test eax, eax
jns 0x4d1d18
mov edx, dword [ebp - 0x28]
push edx
push 0
push 0x5102c0
push 0
push 0
push edi
push esi
push ebx
call fcn.004c98e0
mov edi, eax
jmp 0x4d1d55
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push edx
push 0
push 0x5102c0
lea edx, [ebp - 0x48]
push edx
push edi
push esi
push ebx
push eax
mov eax, dword [ecx + 0x28]
mov byte [ebp - 4], 3
call eax
mov edi, eax
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 2
test eax, eax
je 0x4d1d55
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
test eax, eax
je 0x4d1d68
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x24], edi
test edi, edi
js 0x4d1e3d
cmp word [ebp - 0x40], 0
jne 0x4d1d7e
xor eax, eax
jmp 0x4d1d81
mov eax, dword [ebp - 0x38]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x38], esi
jmp 0x4d1da0
call fcn.00448f30
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x30]
xor esi, esi
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x4d1ddb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4d1ddb
cmp dx, si
je 0x4d1ddb
mov eax, dword [ebp - 0x38]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
push ecx
push ebx
call fcn.004ccd30
mov edx, dword [ebp - 0x40]
inc edx
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], edx
cmp dx, word [ebp - 0x54]
jb 0x4d1b50
jmp 0x4d1e67
call fcn.00448f30
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d1e67
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4d1e67
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d1e67
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4d1e67
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4d1e67
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4d1e67
call fcn.00448f30
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret 4