Function at 0x4d7180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x6f5e9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
push edi
mov edi, ecx
push 0x7c
mov dword [esp + 0x1c], edi
call fcn.00652710
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x50], 0
je 0x4d7213
lea eax, [esp + 0xb]
lea ecx, [esi + 0x20]
push eax
call fcn.004f6840
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 1
push ecx
lea ecx, [esi + 0x34]
call fcn.004f6840
lea edx, [esp + 0xd]
lea ecx, [esi + 0x44]
push edx
mov byte [esp + 0x54], 2
call fcn.004f6840
lea eax, [esp + 0xe]
lea ecx, [esi + 0x5c]
push eax
mov byte [esp + 0x54], 3
call fcn.004f6840
lea ecx, [esp + 0xf]
mov byte [esp + 0x50], 4
push ecx
lea ecx, [esi + 0x6c]
call fcn.004f6840
jmp 0x4d7215
xor esi, esi
mov dword [edi], esi
mov dword [esp + 0x50], 5
call fcn.006d8f27
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4d7260
mov edx, dword [esp + 0x58]
push 5
and edx, 0xffff
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4d7260
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d7260
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
test edx, edx
mov dword [esp + 0x14], edx
jne 0x4d72a4
lea ecx, [esp + 0x1c]
call fcn.005bf580
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 6
call fcn.0041f410
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 8
call fcn.00407e50
lea eax, [esp + 0x2c]
push 0x7a24f0
push eax
mov dword [esp + 0x34], vtable.t_constructor_failure_class_t_dialog_template_data__class_std::runtime_error_.0
mov byte [esp + 0x58], 5
call fcn.006609b5
cmp word [edx + 2], 0xffff
push ebp
mov ebp, dword [edi]
mov dword [esp + 0x14], edx
sete al
test al, al
mov byte [esp + 0x5c], al
je 0x4d72d2
mov ecx, 6
mov esi, edx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x14]
add eax, 0x1a
jmp 0x4d72fb
mov ecx, edx
mov eax, ebp
mov esi, dword [ecx]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov esi, dword [ecx + 0xc]
mov dword [eax + 0xc], esi
mov cx, word [ecx + 0x10]
mov word [eax + 0x10], cx
mov eax, dword [esp + 0x14]
add eax, 0x12
sub eax, edx
mov edi, 2
inc eax
mov ecx, eax
and ecx, 1
sub eax, ecx
add eax, edx
mov dword [esp + 0x14], eax
mov cx, word [eax]
add eax, edi
cmp cx, 0xffff
mov dword [esp + 0x14], eax
jne 0x4d733b
mov byte [ebp + 0x1a], 0
mov edx, dword [esp + 0x14]
mov ax, word [edx]
mov word [ebp + 0x1c], ax
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x14], eax
jmp 0x4d738a
mov byte [ebp + 0x1a], 1
mov ecx, dword [esp + 0x14]
sub ecx, edi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x20]
call fcn.004d6450
mov edx, dword [ebp + 0x24]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov dword [ebp + 0x24], ecx
mov edx, dword [ebp + 0x28]
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov dword [ebp + 0x28], ecx
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov dword [ebp + 0x2c], ecx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 5
call fcn.004d8e90
mov ecx, dword [esp + 0x14]
mov ax, word [ecx]
add ecx, edi
cmp ax, 0xffff
mov dword [esp + 0x14], ecx
jne 0x4d73b8
mov byte [ebp + 0x30], 0
mov eax, dword [esp + 0x14]
mov cx, word [eax]
mov word [ebp + 0x32], cx
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x14], eax
jmp 0x4d7407
mov byte [ebp + 0x30], 1
mov ecx, dword [esp + 0x14]
sub ecx, edi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x20]
call fcn.004d6450
mov edx, dword [ebp + 0x38]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov dword [ebp + 0x38], ecx
mov edx, dword [ebp + 0x3c]
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov dword [ebp + 0x3c], ecx
mov edx, dword [ebp + 0x40]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov dword [ebp + 0x40], ecx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 5
call fcn.004d8e90
lea edx, [esp + 0x14]
lea ecx, [esp + 0x30]
call fcn.004d6450
mov edx, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0xd
call fcn.004d6a70
mov edx, dword [ebp + 0x48]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov dword [ebp + 0x48], ecx
mov edx, dword [ebp + 0x4c]
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov dword [ebp + 0x4c], ecx
mov edx, dword [ebp + 0x50]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov dword [ebp + 0x50], ecx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 0xd
call fcn.00407e50
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 5
call fcn.004d8e90
mov esi, 0xffff
cmp word [ebp + 2], si
jne 0x4d7478
mov eax, dword [ebp + 0xc]
jmp 0x4d747b
mov eax, dword [ebp]
shr eax, 6
test al, 1
je 0x4d74fc
mov eax, dword [esp + 0x14]
mov cx, word [eax]
mov al, byte [esp + 0x5c]
mov word [ebp + 0x54], cx
mov ecx, dword [esp + 0x14]
add ecx, edi
test al, al
mov dword [esp + 0x14], ecx
je 0x4d74c5
mov edx, ecx
mov ax, word [edx]
mov word [ebp + 0x56], ax
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x14], eax
mov cx, word [eax]
mov word [ebp + 0x58], cx
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x14], eax
jmp 0x4d74cf
xor eax, eax
mov word [ebp + 0x56], ax
mov word [ebp + 0x58], ax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x30]
call fcn.004d6450
lea edx, [ebp + 0x5c]
mov ecx, eax
push edx
mov byte [esp + 0x58], 0x10
call fcn.00550b10
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 5
call fcn.004d8e90
cmp word [ebp + 2], si
jne 0x4d7508
mov ax, word [ebp + 0x10]
jmp 0x4d750c
mov ax, word [ebp + 8]
and eax, esi
lea esi, [ebp + 0x6c]
mov edi, eax
mov ecx, esi
push edi
call fcn.004d8ab0
test edi, edi
jle 0x4d758f
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
push 4
lea edx, [esp + 0x18]
call fcn.004d75b0
push 0x50
call fcn.00652710
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
mov byte [esp + 0x54], 0x11
je 0x4d7558
lea ecx, [esp + 0x14]
push ebp
push ecx
mov ecx, eax
call fcn.004d6b70
jmp 0x4d755a
xor eax, eax
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 5
call fcn.006081d0
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x5c], 0x12
call fcn.004d8ee0
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 5
call fcn.004d9560
dec edi
jne 0x4d7523
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret 4