Function at 0x41ed80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8b85
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x640844]
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
mov dword [ebp - 0x34], ecx
movzx eax, word [ebp + 8]
push 0xf0
push eax
push dword [0x647e58]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
mov dword [ebp - 0x44], ecx
test eax, eax
je 0x41edee
push eax
push dword [0x647e58]
call edi
test eax, eax
je 0x41edee
push eax
call esi
mov dword [ebp - 0x44], eax
movzx ecx, word [ebp + 8]
push 5
push ecx
push dword [0x647e58]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f190
push eax
push dword [0x647e58]
call edi
test eax, eax
je 0x41f189
push eax
call esi
mov edx, eax
test edx, edx
je 0x41f189
movzx ecx, word [edx + 2]
mov esi, 0xffff
mov eax, ecx
mov dword [ebp - 0x40], eax
movzx eax, ax
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp cx, si
push edx
sete al
mov dword [ebp - 0x54], eax
xor eax, eax
cmp cx, si
sete al
lea eax, [eax*8 + 8]
movzx eax, word [eax + edx]
mov dword [ebp - 0x48], eax
call fcn.00420c50
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], esi
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], ecx
cmp ax, word [ebp - 0x48]
jae 0x41f190
nop
mov edx, 0xffff
cmp word [ebp - 0x40], dx
jne 0x41eea6
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x3c]
jmp 0x41eead
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x4c], dx
mov eax, 0x18
mov edx, 0x12
cmovne eax, edx
cmp word [eax + esi], 0x7b
jne 0x41f13c
mov ecx, dword [ebp - 0x44]
mov eax, ecx
test ecx, ecx
je 0x41eeed
mov ebx, dword [ebp - 0x24]
movzx ecx, word [eax]
lea edi, [eax + 2]
movzx esi, word [eax + 2]
mov edx, dword [eax + 4]
add eax, 8
cmp ecx, ebx
je 0x41ef32
add eax, edx
jne 0x41eed5
xor esi, esi
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
test esi, esi
je 0x41ef83
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x41f151
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41ef4e
push esi
test ebx, ebx
je 0x41ef43
push ebx
push eax
call fcn.004eecb0
add esp, 0xc
xor eax, eax
jmp 0x41ef63
mov eax, 0x378
cmp si, ax
je 0x41eeed
mov ebx, edi
lea esi, [edx + 6]
jmp 0x41eef1
push 0
push eax
call fcn.004ef230
add esp, 0xc
call fcn.004f24f9
mov dword [eax], 0x16
call fcn.004f241f
mov eax, 0x16
push eax
call fcn.0041a040
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.004240a0
mov edi, dword [ebp - 0x30]
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x41f0f7
call fcn.00427f00
mov ecx, dword [ebp - 0x40]
mov edx, 0xffff
mov ebx, dword [ebp - 0x38]
cmp cx, dx
mov eax, 0x18
mov esi, 0x12
cmovne eax, esi
add eax, ebx
mov dword [ebp - 0x50], eax
cmp cx, dx
jne 0x41f016
movzx eax, word [ebx + 0xc]
movsx ecx, ax
movzx eax, word [ebx + 0xe]
movsx edx, ax
movsx eax, word [ebx + 0x10]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
movsx eax, word [ebx + 0x12]
add eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [ebx + 4]
lea esi, [ebx + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], ecx
jmp 0x41f059
movzx eax, word [ebx + 8]
movsx ecx, ax
movzx eax, word [ebx + 0xa]
movsx edx, ax
movsx eax, word [ebx + 0xc]
add eax, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
movsx eax, word [ebx + 0xe]
add eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
movzx eax, word [ebx + 0x10]
mov esi, ebx
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push 0
push dword [0x647e54]
mov esi, dword [esi]
push eax
mov eax, dword [ebp - 0x34]
or esi, 0x10000
push dword [eax + 4]
mov eax, dword [ebp - 0x14]
sub eax, edx
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push esi
push 0
push 0x5de834
push dword [ebp - 0x24]
call fcn.004281f0
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x41f0f0
mov eax, 0xffff
cmp word [ebp - 0x40], ax
jne 0x41f0b6
mov eax, dword [ebx]
test eax, eax
je 0x41f0b6
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push edi
push 0
push dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x50]
call fcn.0041f230
mov ebx, eax
test ebx, ebx
js 0x41f16c
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp word [ebp - 0x3c], cx
push 0x13
push ecx
push ecx
push ecx
push ecx
cmove eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x2c], esi
jmp 0x41f0f7
call fcn.0041df60
mov ebx, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41f112
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
push dword [ebp - 0x54]
push esi
call fcn.00420cf0
mov ecx, dword [ebp - 0x3c]
add esp, 8
inc ecx
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ecx
cmp cx, word [ebp - 0x48]
jb 0x41ee90
jmp 0x41f190
test cx, cx
je 0x41f118
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x2c], edi
jmp 0x41f118
mov eax, dword [ebp - 0x28]
mov ebx, 0x8007000e
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41f190
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41f190
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x41f190
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x41f190
call fcn.0041df60
mov ebx, eax
mov eax, ebx
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 fcn.004ed0cc
mov esp, ebp
pop ebp
ret 4