Function at 0x4ed330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x5fd7c0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
movzx esi, word [ebp + 8]
push edi
push 0xf0
push esi
mov edi, ecx
push eax
mov dword [ebp - 0x30], edi
call ebx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x4ed393
mov ecx, dword [0x5fd7c0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ed393
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
mov edx, dword [0x5fd7c0]
push 5
push esi
push edx
call ebx
test eax, eax
je 0x4ed656
push eax
mov eax, dword [0x5fd7c0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ed6ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ed6ce
movzx ecx, word [eax + 2]
xor ebx, ebx
mov edx, 0xffff
cmp cx, dx
sete bl
cmp cx, dx
lea ecx, [eax + 0x10]
mov esi, ebx
mov dword [ebp - 0x14], esi
je 0x4ed3ec
lea ecx, [eax + 8]
movzx ecx, word [ecx]
push eax
mov dword [ebp - 0x2c], ecx
call fcn.004e5af0
mov edx, dword [edi + 4]
add esp, 4
push 5
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x18], eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x20], edx
cmp ax, word [ebp - 0x2c]
jae 0x4ed689
test esi, esi
je 0x4ed429
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x18]
jmp 0x4ed430
movzx ecx, word [ebx + 0x10]
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x4ed625
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
mov dword [ebp - 0x10], 0
call fcn.004ed050
add esp, 0xc
mov edi, eax
mov dword [ebp + 8], 0
mov dword [ebp - 4], 1
test edi, edi
je 0x4ed4a6
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4ed66c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x10]
push edi
push ecx
push edi
push eax
call fcn.00401190
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp + 8]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.00439a60
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
js 0x4ed5ff
mov dword [ebp - 0x10], 0
call fcn.00443820
test esi, esi
je 0x4ed4e8
movzx eax, word [ebx + 0xc]
lea edx, [ebx + 0x18]
mov dword [ebp - 0x28], edx
jmp 0x4ed4f2
lea eax, [ebx + 0x12]
mov dword [ebp - 0x28], eax
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [ebp - 0x44], edx
test esi, esi
je 0x4ed502
movzx eax, word [ebx + 0xe]
jmp 0x4ed506
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [ebp - 0x40], ecx
test esi, esi
je 0x4ed516
movzx eax, word [ebx + 0x10]
jmp 0x4ed51a
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x4ed52a
movzx eax, word [ebx + 0x12]
jmp 0x4ed52e
movzx eax, word [ebx + 0xe]
mov edi, dword [ebp - 0x30]
movsx edx, ax
add edx, ecx
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x44]
push eax
push ecx
mov dword [ebp - 0x38], edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x4ed556
mov esi, dword [ebx + 0x14]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x4ed55e
movzx esi, word [ebx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push edx
or eax, 0x10000
push eax
push 0
push ecx
mov eax, esp
mov dword [ecx], esi
lea edx, [ebp - 0x44]
mov dword [eax], edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x34], esp
push eax
lea ecx, [ebp - 0x10]
call fcn.00438a20
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4ed5f4
cmp dword [ebp - 0x14], 0
je 0x4ed5a3
mov eax, dword [ebx]
test eax, eax
je 0x4ed5a3
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
push ecx
push 0
push 0x5b17a4
push 0
push 0
push edx
push eax
lea ecx, [ebp - 0x10]
call fcn.004ed220
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
js 0x4ed69c
cmp word [ebp - 0x20], 0
jne 0x4ed5da
xor eax, eax
jmp 0x4ed5dd
mov eax, dword [ebp - 0x18]
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x18], esi
jmp 0x4ed5fc
call fcn.00401490
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ed639
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4ed639
test dx, dx
je 0x4ed639
mov ecx, dword [ebp - 0x18]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x18], eax
push esi
push ebx
call fcn.004e5b90
mov edx, dword [ebp - 0x20]
inc edx
add esp, 8
mov ebx, eax
mov dword [ebp - 0x20], edx
cmp dx, word [ebp - 0x2c]
jb 0x4ed41d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, 0x8007000e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ed687
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043c2d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00401490
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4